public OnPlayerConnect(playerid) { if ( !INI_Exist( pName( playerid ) ) ) ShowPlayerDialog( playerid, DIALOG_REG_REQ, DIALOG_STYLE_MSGBOX, "{FFFFFF}Password", "{FFFFFF}Per giocare devi registrare un account!", "Ok", ""); else ShowPlayerDialog( playerid, DIALOG_LOGIN, DIALOG_STYLE_MSGBOX, "{FFFFFF}Password", "{FFFFFF}Il tuo account è registrato, effettua il login", "Si", "No"); return 1;
new stringa[128]; //riga 117 new nome[64]; GetPlayerName(playerid,nome,sizeof(nome)); format(stringa,sizeof(stringa),"%s è arrivato in città.",nome); SendClientMessageToAll(ROSSO,stringa); return 1; }
warning 225: unreachable code in riga 117
che devo fare?
EDIT
Pensadoci bene, ma non è detto che sia giusto, non è che devo fare così:
public OnPlayerConnect(playerid) { if ( !INI_Exist( pName( playerid ) ) ) ShowPlayerDialog( playerid, DIALOG_REG_REQ, DIALOG_STYLE_MSGBOX, "{FFFFFF}Password", "{FFFFFF}Per giocare devi registrare un account!", "Ok", ""); else ShowPlayerDialog( playerid, DIALOG_LOGIN, DIALOG_STYLE_MSGBOX, "{FFFFFF}Password", "{FFFFFF}Il tuo account è registrato, effettua il login", "Si", "No"); GetPlayerName(playerid,nome,sizeof(nome)); format(stringa,sizeof(stringa),"%s è arrivato in città.",nome); SendClientMessageToAll(ROSSO,stringa); return 1; }
|