Error: array index out of bounds. Any help would be much appreciated! - 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: Error: array index out of bounds. Any help would be much appreciated! (
/showthread.php?tid=429226)
Error: array index out of bounds -
Universal - 08.04.2013
Delete this. Figured out myself.
Re: error 032: array index out of bounds -
Jstylezzz - 08.04.2013
pawn Код:
format(string, sizeof string, "MY STRING: %s", MY_DATA[MY_VAR]);
Never tried the sizeof thing without the (), so I'm not sure if it's the problem. Try this:
pawn Код:
format(string, sizeof(string), "MY STRING: %s", MY_DATA[MY_VAR]);
Re: error 032: array index out of bounds -
Universal - 08.04.2013
Quote:
Originally Posted by Jstylezzz
pawn Код:
format(string, sizeof string, "MY STRING: %s", MY_DATA[MY_VAR]);
Never tried the sizeof thing without the (), so I'm not sure if it's the problem. Try this:
pawn Код:
format(string, sizeof(string), "MY STRING: %s", MY_DATA[MY_VAR]);
|
Thats not the problem, I've been formatting strings like that for a while now. Its possible!
Re: Error: array index out of bounds. Any help would be much appreciated! -
Universal - 09.04.2013
Well anyone?