SA-MP Forums Archive
[Ajuda] - Pawno Crashando - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] - Pawno Crashando (/showthread.php?tid=285856)



[Ajuda] - Pawno Crashando - Jason` - 25.09.2011

@edit

Tirando GM daqui


Re: [Ajuda] - Pawno Crashando - Dr_Pawno - 25.09.2011

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


Re: [Ajuda] - Pawno Crashando - Jason` - 25.09.2011

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


Re: [Ajuda] - Pawno Crashando - Dr_Pawno - 25.09.2011

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


Re: [Ajuda] - Pawno Crashando - WLSF - 25.09.2011

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...


Re: [Ajuda] - Pawno Crashando - Jason` - 25.09.2011

obrigado pela ajuda dr pawno


Re: [Ajuda] - Pawno Crashando - Dr_Pawno - 25.09.2011

+Rep ()?