Pvars question?
#4

Quote:
Originally Posted by Seif_
I always do:
for(new playerid, m = GetMaxPlayers(); playerid < m; playerid++)
This is faster than doing:
for(new playerid; playerid < GetMaxPlayers(); playerid++)
because you find GetMaxPlayers value and use it in the whole loop instead of finding it in every loop.
I also redefined MAX_PLAYERS to my max players slot. I do think we need a SetVVar(Int/Float/String) as well for vehicles.
I REALLY agree with that lol. Maybe just a better variable system all together (instead of pvar,vvar,ovar ... just have a single system).


Hmmm subject got a little offtopic... sorry lol.
Reply


Messages In This Thread
Pvars question? - by Torran - 26.03.2010, 15:56
Re: Pvars question? - by Kyosaur - 26.03.2010, 16:06
Re: Pvars question? - by Kyosaur - 26.03.2010, 16:11
Re: Pvars question? - by Kyosaur - 26.03.2010, 17:11
Re: Pvars question? - by playbox12 - 26.03.2010, 17:53

Forum Jump:


Users browsing this thread: 3 Guest(s)