What is wrong with that?
#1

pawn Код:
public SetPlayerRandomSpawn(playerid)
{
    new PlayerSkin = GetPlayerSkin(playerid);
  if (PlayerSkin[playerid, 61] || PlayerSkin[playerid, 169]) // LINE WITH ALL ERRORS
  {
        new rand = random(sizeof(gRandomPlayerSpawns));
        SetPlayerPos(playerid, gRandomPlayerSpawns[rand][0], gRandomPlayerSpawns[rand][1], gRandomPlayerSpawns[rand][2]); // Warp the player
    }
    return 1;
}
Код:
 error 028: invalid subscript (not an array or too many subscripts): "PlayerSkin"
 warning 215: expression has no effect
 warning 215: expression has no effect
 error 001: expected token: ";", but found "]"
 error 029: invalid expression, assumed zero
 fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply
#2

pawn Код:
if (PlayerSkin == 61 || PlayerSkin == 169)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)