Array problem - 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: Array problem (
/showthread.php?tid=268418)
Array problem -
Urefeu - 12.07.2011
Hello.
I have a code like that in a GameModeInit FilterScript:
Code:
new pickups [MAX_PICKUPS];
new pickup;
pickup AddStaticPickup = (1274, 2, -1346.1757,492.4712,11.2027, -1);
pickups[pickup] = "store";
pickup AddStaticPickup = (1274, 2, -1351.3839,500.9245,18.2344, -1);
pickups[pickup] = "store";
(and other pickups that follow).
I have the error: error 006: Must Be Assigned to year array
Each line pickups[pickup] = "store";
How to solve this problem?
Thank you!
Re: Array problem -
[MG]Dimi - 13.07.2011
I don't know what do you want to do with this. That might help us but I know that you can use "(variable) (function) = (function params)". It has to be "(variable) = (Function)(function params)"