SA-MP Forums Archive
[Ajuda] Erros apos colocar comando - 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] Erros apos colocar comando (/showthread.php?tid=486678)



Erros apos colocar comando - PedroAuditore - 09.01.2014

O gm compila normalmente mas apуs colocar o comando:
pawn Код:
if(strcmp(cmdtext, "/kitvip", true) == 0)
    {
        if(PlayerInfo[playerid][pDonateRank] < 1) return SendClientMessage(playerid, -1, "Vocк nгo й Vip");
        if(PlayerInfo[playerid][pDonateRank] >= 1)
            if(IsAtGasStation(playerid))
        {
            SendClientMessage(playerid, -1, "Vocк pegou seu Kit Vip");
            SetPlayerHealth(playerid, 100.0);
            SetPlayerArmour(playerid, 100.0);
            GivePlayerWeapon(playerid, 4, 1);
            GivePlayerWeapon(playerid, 24, 500);
            GivePlayerWeapon(playerid, 25, 500);
            GivePlayerWeapon(playerid, 29, 500);
            GivePlayerWeapon(playerid, 31, 500);
            GivePlayerWeapon(playerid, 34, 500);
            return 1;
        }
Ele da vбrios erros em linhas que nгo tem relaзгo com o comando.

Erros:
Function "FixHour" is not implemented (2 vezes seguidas nas linhas 3098 e 466
Function "SafeGivePlayerWeapon" is not implemented (Vбrias vezes)
Function "PlayerToPoint" is not implemented (vбrias vezes)
Undefined symbol "GetName" (3 vezes)
Function "ProxDetector" is not implemented (vбrias vezes)


Re: Erros apos colocar comando - feliphemort - 09.01.2014

Acho que tб faltando chaves ai


Re: Erros apos colocar comando - yNexus - 09.01.2014

Testa ai
PHP код:
if(strcmp(cmdtext"/kitvip"true) == 0)
{
    if(
PlayerInfo[playerid][pDonateRank] < 1) return SendClientMessage(playerid, -1"Vocк nгo й Vip");
    if(
PlayerInfo[playerid][pDonateRank] >= 1)
    if(
IsAtGasStation(playerid))
    {
        
SendClientMessage(playerid, -1"Vocк pegou seu Kit Vip");
        
SetPlayerHealth(playerid100.0);
        
SetPlayerArmour(playerid100.0);
        
GivePlayerWeapon(playerid41);
        
GivePlayerWeapon(playerid24500);
        
GivePlayerWeapon(playerid25500);
        
GivePlayerWeapon(playerid29500);
        
GivePlayerWeapon(playerid31500);
        
GivePlayerWeapon(playerid34500);
    }
    return 
1;




Re: Erros apos colocar comando - PedroAuditore - 09.01.2014

Quote:
Originally Posted by yNexus
Посмотреть сообщение
Testa ai
PHP код:
if(strcmp(cmdtext"/kitvip"true) == 0)
{
    if(
PlayerInfo[playerid][pDonateRank] < 1) return SendClientMessage(playerid, -1"Vocк nгo й Vip");
    if(
PlayerInfo[playerid][pDonateRank] >= 1)
    if(
IsAtGasStation(playerid))
    {
        
SendClientMessage(playerid, -1"Vocк pegou seu Kit Vip");
        
SetPlayerHealth(playerid100.0);
        
SetPlayerArmour(playerid100.0);
        
GivePlayerWeapon(playerid41);
        
GivePlayerWeapon(playerid24500);
        
GivePlayerWeapon(playerid25500);
        
GivePlayerWeapon(playerid29500);
        
GivePlayerWeapon(playerid31500);
        
GivePlayerWeapon(playerid34500);
    }
    return 
1;

Deu certo obrigado


Re: Erros apos colocar comando - yNexus - 09.01.2014

Quote:
Originally Posted by PedroAuditore
Посмотреть сообщение
Deu certo obrigado
++