[AJUDA] Erro pawn
#1

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);
                        }
    }
Reply
#2

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;
    }
    }
Reply
#3

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;
}
Reply
#4

vlw esse erro й por causo de return?
Reply
#5

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;
}
Reply
#6

Que linda assinatura.
Reply
#7

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);
                        }
    }
Reply
#8

KKKKKKKKKK, pode crer
Reply
#9

Vlw Pra MatriXBorn
Reply
#10

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


Forum Jump:


Users browsing this thread: 1 Guest(s)