[Help]error 033: array must be indexed (variable "teleport") - 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: [Help]error 033: array must be indexed (variable "teleport") (
/showthread.php?tid=102043)
[Help]error 033: array must be indexed (variable "teleport") -
borisblat - 13.10.2009
new teleport[256];
teleport = strval(tmp2);
rror 033: array must be indexed (variable "teleport")
Re: [Help]error 033: array must be indexed (variable "teleport") -
dice7 - 13.10.2009
You can't place one integer (that's what strval returns) into 256 cells if that's what you want. Use a loop or index your array to the cell you want the number to go to