What is wrong with that? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: What is wrong with that? (
/showthread.php?tid=132027)
What is wrong with that? -
Pawel2k9 - 06.03.2010
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.
Re: What is wrong with that? -
[HiC]TheKiller - 06.03.2010
pawn Код:
if (PlayerSkin == 61 || PlayerSkin == 169)