SA-MP Forums Archive
[Ajuda] PlayerInfo[playerid][pInt] = 3; - 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] PlayerInfo[playerid][pInt] = 3; (/showthread.php?tid=457770)



PlayerInfo[playerid][pInt] = 3; - Alisson Silva Alves - 13.08.2013

Ajuda

Linha =
pawn Код:
PlayerInfo[playerid][pInt] = 3;
Erros =
pawn Код:
C:\Users\Acer\Desktop\[GM]\gamemodes\BKG.pwn(13) : warning 202: number of arguments does not match definition
C:\Users\Acer\Desktop\[GM]\gamemodes\BKG.pwn(156) : error 017: undefined symbol "PlayerInfo"
C:\Users\Acer\Desktop\[GM]\gamemodes\BKG.pwn(156) : warning 215: expression has no effect
C:\Users\Acer\Desktop\[GM]\gamemodes\BKG.pwn(156) : error 001: expected token: ";", but found "]"
C:\Users\Acer\Desktop\[GM]\gamemodes\BKG.pwn(156) : error 029: invalid expression, assumed zero
C:\Users\Acer\Desktop\[GM]\gamemodes\BKG.pwn(156) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

CMD TODO


pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(IsPlayerInRangeOfPoint(playerid, 3.0, 1481.0393, -1772.3138, 18.7958))
    {
        SetPlayerPos(playerid, 384.808624,173.804992,1008.382812);
        SetPlayerInterior(playerid,0);
        SetPlayerFacingAngle(playerid, 0);
        PlayerInfo[playerid][pInt] = 3;
        PlayerInfo[playerid][pLocal] = 255;
        SetPlayerVirtualWorld(playerid, 0);
        return 1;
    }
}



Re: PlayerInfo[playerid][pInt] = 3; - Lуs - 13.08.2013

Vocк nгo declarou a matriz PlayerInfo.


Re: PlayerInfo[playerid][pInt] = 3; - darkxdll - 13.08.2013

Como o Lуs disse :
pawn Код:
enum pinfs
{
pInt,
pAdm
}
new PlayerInfo[MAX_PLAYERS][pinfs];