Faster alternative to format()?
#4

Need to improvise.
like you can do

new PlayerInEvent[MAX_PLAYERS];

In some event command
Loop for i
if(IsPlayerInEventCar(i,car)) { PlayerInEvent[i] = 1; }


Later elsewhere

Loop for i
if(PlayerInEvent[i] == 1) { SendClient(i,-1," you are in event"); }


or


new PlayerInEvent[10]; //As not whole server can be in the same event aka arena orso.

In some event command
Loop for i
if(IsPlayerInEventCar(i,car)) { Loop for B PlayerInEvent[b] = i; }


Later elsewhere

Loop for i
SendClient(PlayerInEvent[i],-1," you are in event");


Hope you got what I mean, like make slots for certain things, not always you have to loop through all cars or players, or like some faction cars can load apples example, you dont need to use Apples[MAX_VEHICLES]; but just Apples[Faction cars count];
Reply


Messages In This Thread
Faster alternative to format()? - by MP2 - 22.01.2013, 12:32
Re: Faster alternative to format()? - by ikey07 - 22.01.2013, 13:15
Re: Faster alternative to format()? - by MP2 - 22.01.2013, 13:17
Re: Faster alternative to format()? - by ikey07 - 22.01.2013, 13:29
Re: Faster alternative to format()? - by MP2 - 22.01.2013, 19:43
Re: Faster alternative to format()? - by FUNExtreme - 22.01.2013, 19:46
AW: Re: Faster alternative to format()? - by Kwashiorkor - 22.01.2013, 19:51
Re: AW: Re: Faster alternative to format()? - by FUNExtreme - 22.01.2013, 19:53
AW: Faster alternative to format()? - by Kwashiorkor - 22.01.2013, 19:58
Re: AW: Faster alternative to format()? - by FUNExtreme - 22.01.2013, 19:59

Forum Jump:


Users browsing this thread: 1 Guest(s)