Playerid
#1

Error while compiling the script. I used "for" and fucked something up..
Код:
error 017: undefined symbol "playerid"
Код:
    for(new i, j = GetMaxPlayers(); i != j; i++)
    {
        if(!IsPlayerConnected(i)) continue;
        if(IsPlayerNPC(i)) continue;
        if(GetPVarInt(playerid, "Equipped") != 1) continue;
        RemovePlayerAttachedObject(i, 1);
        RemovePlayerAttachedObject(i, 2);
        RemovePlayerAttachedObject(i, 3);
        RemovePlayerAttachedObject(i, 4);
    }
Error on
Код:
if(GetPVarInt(playerid, "Equipped") != 1) continue;
Reply
#2

pawn Код:
if(GetPVarInt(i, "Equipped") != 1) continue;
Reply
#3

Yeah... Thanks :P +rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)