Loop through arrayed values - 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: Loop through arrayed values (
/showthread.php?tid=594204)
Loop through arrayed values -
vassilis - 14.11.2015
Is there a way i could take more than 1 values from arrays to implement a common command?
I want to setactorvirtualworld to 14 from [MY VARIABLES]
otherpeds[0] to otherpeds[11] and from
otherpeds[12] to otherpeds[20] virtualworld 12 (just an example) how could that be possible?
Re: Loop through arrayed values -
prineside - 14.11.2015
I didn't understand what you are asking for.
If you want to set VW#14 to actors whose ID stored in otherpeds[0-11] there's no other way except loop.
What do you mean saying "take more than 1 value from arrays"?