Problem with variables - 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)
+--- Thread: Problem with variables (
/showthread.php?tid=538176)
Problem with variables -
Supermaxultraswag - 20.09.2014
Код HTML:
public OnPlayerSpawn(playerid)
{
Variable[playerid] = 1;
return 1;
}
Код HTML:
error 028: invalid subscript (not an array or too many subscripts): "Variable"
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: Problem with variables -
PrivatioBoni - 20.09.2014
Where did you put "new Variable;"?
If it's intended to be a global variable, try "new Variable[MAX_PLAYERS]; and recompile.
Re: Problem with variables -
Supermaxultraswag - 20.09.2014
THANKS