16.01.2012, 17:27
Hey. I'll write this fastly, because I don't have much time. I have this:
I have no idea how to add this into a new stock, LoopThroughParticipants (because I use this over 50 times, would be less code to do this then). The problem is that I don't know how to add with a few brackets. With no one, it would be easy, for example (if return 1 is needed, but I don't need that code below for now):
So, anyone can give a code of stock using those two things (loop and if...)? I'd be glad if someone would do it (if possible, I think it is).
Thanks
Код:
for(new i = 0; i < MaxPariticipants; i++) { if(PlayersAtMinigame[i] != -1 etc...) {
Код:
stock LoopThroughParticipants() { for(new i = 0; i < MaxPariticipants; i++) return 1; }
Thanks