SA-MP Forums Archive
foreach get slot - 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: foreach get slot (/showthread.php?tid=512465)



foreach get slot - Baltazar - 10.05.2014

I've got an array:

Код:
new my_admin_array[MAX_ADMINS][STORE_SOME_INFO];
And of course... MAX_ADMINS is less than MAX_PLAYERS and slot 0 is assigned to a certain playerid. What a great idea is to create an iterator for storing all the admins:

Код:
new Iterator:Admin<MAX_ADMINS>;
It contains admins playerids. And now I want to EXTRACT ITERATOR SLOT of a certain playerid so I could use it in my_admin_array[] as index. HOW do I do that?