[DUVIDA] O QUE ESTA ERRADO ?
#1

pawn Код:
if(strcmp(cmd, "/darcolete", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USE: /colete [id] [quantia]");
                return true;
            }
            new playa;
            new health;
            playa = ReturnUser(tmp);
            tmp = strtok(cmdtext, idx);
            health = strval(tmp);
            if (PlayerInfo[playerid][pAdmin] >= 4)
            {
                if(admtrampando[playerid] < 1 && PlayerInfo[playerid][pAdmin] != 1342)
                {
                SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/trabalhar)");
                return true;
                }
                if(IsPlayerConnected(playa))
                {
                    if(playa != INVALID_PLAYER_ID)
                    {
                        if(PlayerInfo[giveplayerid][pAdmin] >= 1342 && PlayerInfo[giveplayerid][pAdmin] >= 1341)
                        {
                            SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo pode dar colete ao Adm Dono!")
                            return true;
                        }
                        SetPlayerArmour(playa, health);
                    }
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   Vocк nгo esta autorizado a usar este comando!");
            }
        }
        return true;


pawn Код:
C:\Documents and Settings\Kluunk\Desktop\Serve\gamemodes\BHL.pwn(30112) : error 001: expected token: ";", but found "return"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Reply
#2

pawn Код:
if(strcmp(cmd, "/darcolete", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USE: /colete [id] [quantia]");
                return true;
            }
            new playa;
            new health;
            playa = ReturnUser(tmp);
            tmp = strtok(cmdtext, idx);
            health = strval(tmp);
            if (PlayerInfo[playerid][pAdmin] >= 4)
            {
                if(admtrampando[playerid] < 1 && PlayerInfo[playerid][pAdmin] != 1342)
                {
                SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/trabalhar)");
                return true;
                }
                if(IsPlayerConnected(playa))
                {
                    if(playa != INVALID_PLAYER_ID)
                    {
                        if(PlayerInfo[giveplayerid][pAdmin] >= 1342 && PlayerInfo[giveplayerid][pAdmin] >= 1341)
                        {
                            SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo pode dar colete ao Adm Dono!");
                            return true;
                        }
                        SetPlayerArmour(playa, health);
                    }
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   Vocк nгo esta autorizado a usar este comando!");
            }
        }
        return true;
Reply
#3

bom amigo nao sei qual e a linha 30 112 mais se for a que eu to pensando fassa isso
Quote:

SendClientMessage(playerid, COLOR_GRAD1, " Vocк nгo esta autorizado a usar este comando!");
}
}
return true;
}

ou isso
SendClientMessage(playerid, COLOR_GRAD1, " Vocк nгo esta autorizado a usar este comando!");
}
}
return 1;
}
Reply
#4

pawn Код:
[B]VLW MANO AJUDO MUITO[/B]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)