06.03.2010, 09:37
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.