Next PlayerID
#1

I'm testing stuff with radars etc, and i would want to know how do you detect the next player id?
For an example:

If i'm checking/aiming at ID 2, then if i press let's say "Left Mouse Button", then it would check/aim at ID 3.

Is it like BLABLA[id]++; etc..?
If so, could someone give me an example on any command?
Reply
#2

Use foreach and Iter_Next function. An example would be:
pawn Код:
Iter_Next(Player, playerid)
and it will return the next valid ID.
Reply
#3

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Use foreach and Iter_Next function. An example would be:
pawn Код:
Iter_Next(Player, playerid)
and it will return the next valid ID.
Ah alright, will try it later, thanks!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)