SA-MP Forums Archive
Loop through variables - 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: Loop through variables (/showthread.php?tid=276578)



Loop through variables - -RaZoR- - 14.08.2011

I need a loop through variables , Let's say we have the variable x(playerid), I need to make it so that if i again gonna use the variable x, It should not be defined on the previous variable we have used. Lets say we did x(playerid)= name, Then I need a loop to check the variable's value is greater than 0 and If not check the next one until it finds playerid variable with value 0


Re: Loop through variables - -RaZoR- - 14.08.2011

Give me a link that exactly suits my case


Re: Loop through variables - -RaZoR- - 14.08.2011

NO what i need exactly is to assign multiplayer variables for players and to allow it to be there even if they log