[Ajuda] - Pawno Crashando
#1

@edit

Tirando GM daqui
Reply
#2

Й por falta de Chaves ( { } ). Cheque o ultimo cуdigo que fez e verifique as chaves.
Reply
#3

Mas ja fiz e a adiзгo e subtraзгo de chaves da sempre 0.
Reply
#4

pawn Код:
/*if(strcmp(cmd,"/veiculo",true) == 0)
    if(Admin[playerid] =*/

        return 1;
    }
Код:
    /*if(strcmp(cmd,"/veiculo",true) == 0)
    if(Admin[playerid] =
        return 1;
    }*/
@edit

Seus comandos n tem chaves LOL
Reply
#5

Exemplo de comando 100% errado.
pawn Код:
if(strcmp(cmd, "/gmx", true) == 0)//inicio comandos de admin
    if(Admin[playerid] >= 3)
    {
        if(IsPlayerConnected(playerid))
        {
            if (Admin[playerid] >= 2)
            {
                format(string,sizeof(string),"[AVISO]: %s Reiniciou o %s, Aguarde um Pouco Para Logar Novamente!",pNome(playerid),SERVERNAME);
                SendClientMessageToAll(VERMELHO,string);
                GameTextForPlayer(playerid,"~w~Reiniciando...",5000,3);
                for(new i = 0; i < MAX_PLAYERS; i++)
                {
                    SalvarPlayer(i);
                }
                GameModeExit();
            }
            else
            {
                SendClientMessage(playerid, BRANCO, "Vocк nгo estб autorizado a usar este comando !");
            }
        }
        return 1;
    }
Exemplo de comando certo:
pawn Код:
if(strcmp(cmd, "/gmx", true) == 0)//inicio comandos de admin
{  
if(Admin[playerid] >= 3)
    {
        if(IsPlayerConnected(playerid))
        {
            if (Admin[playerid] >= 2)
            {
                format(string,sizeof(string),"[AVISO]: %s Reiniciou o %s, Aguarde um Pouco Para Logar Novamente!",pNome(playerid),SERVERNAME);
                SendClientMessageToAll(VERMELHO,string);
                GameTextForPlayer(playerid,"~w~Reiniciando...",5000,3);
                for(new i = 0; i < MAX_PLAYERS; i++)
                {
                    SalvarPlayer(i);
                }
                GameModeExit();
            }
            else
            {
                SendClientMessage(playerid, BRANCO, "Vocк nгo estб autorizado a usar este comando !");
            }
        }
        return 1;
    }
}
Quando GM para de responder й porque vocк Esqueзeu de um bucado de chaves ("{}")
atй onde notei, sу vi os comandos errados. Boa sorte reconstruindo eles...
Reply
#6

obrigado pela ajuda dr pawno
Reply
#7

+Rep ()?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)