[Ajuda] Esse comando estб com 1 erro nгo consigo resolver!!!
#2

PHP код:
if(strcmp(cmd"/darprocurado"true == 0))
{
    new 
aname[MAX_PLAYER_NAME];
    if(
pAdmin[playerid] == || pAdmin[playerid] == 5)
    {
        new 
tmp[256], plid;
        
tmp strtok(cmdtextidx);
        if(!
strlen(tmp))
            return 
SendClientMessage(playeridVermelho"Digite: /Darprocurado [id] [motivo]");
            
        
plid strval(tmp);
        new 
pname[MAX_PLAYER_NAME];
        
GetPlayerName(plidpnameMAX_PLAYER_NAME);
        if(
IsPlayerConnected(plid))
        {
            
dini_IntSet(file2"procurado"1);
            
SetPlayerWantedLevel(playerid1);
            
format(stringsizeof(string), "%s Deu 1 estrela de procurado para %s)"pnameaname);
            
SendClientMessageToAll(LARANJAstring);
        }
        else
        {
            
format(stringsizeof(string), "ID %d nгo й vбlido!"plid);
            
SendClientMessage(playeridVermelhostring);
        }
    }
    return 
1;

@off

Tenta deixar seu codigo mais identado.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)