[Ajuda] Comando inválido
#3

Vocк usa o else apуs o fechamento de brackets do if.

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;
		}
Reply


Messages In This Thread
Comando inválido - by iFaLLeN - 02.05.2016, 05:30
Re: Comando invбlido - by 99fe3rnando - 02.05.2016, 09:36
Re: Comando invбlido - by Monotox - 02.05.2016, 14:32

Forum Jump:


Users browsing this thread: 1 Guest(s)