02.05.2016, 14:32
Vocк usa o else apуs o fechamento de brackets do if.
Veja:
Veja:
Код:
if(strcmp(cmd,"/Previsao",true)==0) { if( pInfo[ playerid ][ Prof ] == METEOROLOGISTA || aInfo[ playerid ][ Admin ] == 1 ) { new string[256]; new i; new randMSG = random(sizeof(RandomPrevisao)); format(string,sizeof(string),"%s disse %s ",PlayerName( i ),RandomPrevisao[randMSG]); SendClientMessageToAll( -1, string ); } else // ERRADO { SendClientMessage(playerid, COLOR_ERRO,"| ERRO | Vocк nгo tem permissгo!"); return 1; } }
Код:
if(strcmp(cmd,"/Previsao",true)==0) { if( pInfo[ playerid ][ Prof ] == METEOROLOGISTA || aInfo[ playerid ][ Admin ] == 1 ) { new string[256]; new i; new randMSG = random(sizeof(RandomPrevisao)); format(string,sizeof(string),"%s disse %s ",PlayerName( i ),RandomPrevisao[randMSG]); SendClientMessageToAll( -1, string ) } else{ //CERTO SendClientMessage(playerid, COLOR_ERRO,"| ERRO | Vocк nгo tem permissгo!"); } return 1; }