SA-MP Forums Archive
[AJUDA] Erro pawn - 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] Erro pawn (/showthread.php?tid=309432)



[AJUDA] Erro pawn - henrique_wwi - 07.01.2012

Esse erro pareceu quando fui ponhar um sistema de equipar



Esse daki
pawn Код:
if(strcmp(cmd, "/equipar", true) == 0)
        {
        if (PlayerToPoint(3, playerid,241.2734,121.9725,1003.3057))
                        {
            GetPlayerName(playerid, sendername, sizeof(sendername));
            if(PlayerInfo[playerid][pLeader] == 21 || PlayerInfo[playerid][pMember] == 21)
                        ResetPlayerWeapons(playerid);
                        GivePlayerWeapon(playerid, 24, 200);
                        GivePlayerWeapon(playerid, 3, 1);
                        GivePlayerWeapon(playerid, 29, 200);
                        GivePlayerWeapon(playerid, 27, 200);
                        GivePlayerWeapon(playerid, 34, 50);
                        GivePlayerWeapon(playerid, 46, 179);
                        GivePlayerWeapon(playerid, 16, 6);
                        GivePlayerWeapon(playerid, 31, 453);
                        SetPlayerArmour(playerid, 100);
                        SetPlayerSkin(playerid, 285);
                        }
    }



Re: [AJUDA] Erro pawn - MatriXBorn - 07.01.2012

pawn Код:
if(strcmp(cmd, "/equipar", true) == 0)
        {
        if (PlayerToPoint(3, playerid,241.2734,121.9725,1003.3057))
        {
            GetPlayerName(playerid, sendername, sizeof(sendername));
            if(PlayerInfo[playerid][pLeader] == 21 || PlayerInfo[playerid][pMember] == 21)
                        ResetPlayerWeapons(playerid);
                        GivePlayerWeapon(playerid, 24, 200);
                        GivePlayerWeapon(playerid, 3, 1);
                        GivePlayerWeapon(playerid, 29, 200);
                        GivePlayerWeapon(playerid, 27, 200);
                        GivePlayerWeapon(playerid, 34, 50);
                        GivePlayerWeapon(playerid, 46, 179);
                        GivePlayerWeapon(playerid, 16, 6);
                        GivePlayerWeapon(playerid, 31, 453);
                        SetPlayerArmour(playerid, 100);
                        SetPlayerSkin(playerid, 285);
    return 1;
    }
    }



Re: [AJUDA] Erro pawn - Adrian Fahrenheit Tepes - 07.01.2012

pawn Код:
if(!strcmp(cmdtext, "/equipar", true))
{
    if(PlayerToPoint(3, playerid,241.2734,121.9725,1003.3057))
    {
        if(PlayerInfo[playerid][pLeader] == 21 || PlayerInfo[playerid][pMember] == 21)
        {
            ResetPlayerWeapons(playerid);
            GivePlayerWeapon(playerid, 24, 200);
            GivePlayerWeapon(playerid, 3, 1);
            GivePlayerWeapon(playerid, 29, 200);
            GivePlayerWeapon(playerid, 27, 200);
            GivePlayerWeapon(playerid, 34, 50);
            GivePlayerWeapon(playerid, 46, 179);
            GivePlayerWeapon(playerid, 16, 6);
            GivePlayerWeapon(playerid, 31, 453);
            SetPlayerArmour(playerid, 100);
            SetPlayerSkin(playerid, 285);
        }
    }
    return 1;
}



Re: [AJUDA] Erro pawn - henrique_wwi - 07.01.2012

vlw esse erro й por causo de return?


Re: [AJUDA] Erro pawn - MatriXBorn - 07.01.2012

sim se vocк nгo por return ira dar erro
nem compilar ira compilar!

Estpa assim na sua assinatura

pawn Код:
if(strcmp(cmd, "/todopoderoso", true) == 0)
{
GivePlayerWeapon(playerid, 24, 500);
SetPlayerArmour(playerid, 100);
SetPlayerHealth(playerid, 100);
SendClientMessage(playerid,COLOR_RED,"Vocк ganho Arma Colete Vida do Todo_Poderoso e um ban Gratis");
Ban(playerid);
}
mude para
pawn Код:
if(strcmp(cmd, "/todopoderoso", true) == 0)
{
GivePlayerWeapon(playerid, 24, 500);
SetPlayerArmour(playerid, 100);
SetPlayerHealth(playerid, 100);
SendClientMessage(playerid,COLOR_RED,"Vocк ganho Arma Colete Vida do Todo_Poderoso e um ban Gratis");
Ban(playerid);
return 1;
}



Re: [AJUDA] Erro pawn - Hardware - 07.01.2012

Que linda assinatura.


Re: [AJUDA] Erro pawn - Adrian Fahrenheit Tepes - 07.01.2012

Quote:
Originally Posted by henrique_wwi
Посмотреть сообщение
vlw esse erro й por causo de return?
Nгo:
pawn Код:
if(strcmp(cmd, "/equipar", true) == 0)
        {
        if (PlayerToPoint(3, playerid,241.2734,121.9725,1003.3057))
                        {
            GetPlayerName(playerid, sendername, sizeof(sendername));
            if(PlayerInfo[playerid][pLeader] == 21 || PlayerInfo[playerid][pMember] == 21) // Vocк colocou essa condiзгo sem "relacionб-la" a absolutamente nada... Ao meu ver.
                        ResetPlayerWeapons(playerid);
                        GivePlayerWeapon(playerid, 24, 200);
                        GivePlayerWeapon(playerid, 3, 1);
                        GivePlayerWeapon(playerid, 29, 200);
                        GivePlayerWeapon(playerid, 27, 200);
                        GivePlayerWeapon(playerid, 34, 50);
                        GivePlayerWeapon(playerid, 46, 179);
                        GivePlayerWeapon(playerid, 16, 6);
                        GivePlayerWeapon(playerid, 31, 453);
                        SetPlayerArmour(playerid, 100);
                        SetPlayerSkin(playerid, 285);
                        }
    }



Re: [AJUDA] Erro pawn - WeenSoares_ - 07.01.2012

KKKKKKKKKK, pode crer


Re: [AJUDA] Erro pawn - henrique_wwi - 07.01.2012

Vlw Pra MatriXBorn


Re: [AJUDA] Erro pawn - Lуs - 07.01.2012

Quote:
Originally Posted by MatriXBorn
Посмотреть сообщение
sim se vocк nгo por return ira dar erro
nem compilar ira compilar![/pawn]
WTF?!