How to add index to a lot of arrays automatic - 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: How to add index to a lot of arrays automatic (
/showthread.php?tid=274631)
How to add index to a lot of arrays automatic -
[Ask]Terminator - 06.08.2011
Hello is there a way to change
MyObj[] = CreateObject....
MyObj[] = CreateObject....
MyObj[] = CreateObject....
to
MyObj[0] = CreateObject....
MyObj[1] = CreateObject....
MyObj[2] = CreateObject....
automaticly cause adding one by one is so boring and takes a lot of time.
thanks.
Re: How to add index to a lot of arrays automatic -
Backwardsman97 - 06.08.2011
Uh you could put it all in a file and write a small script that opens and adds the indexes in.