Scores for stunting
#8

Quote:
Originally Posted by Kinetic
pawn Код:
for(new i=0; i<=GetMaxPlayers(); i++)
That is MUCH better.
Calling a function each itteration which returns a constant result is not better than using a define. MAX_PLAYERS is there for a reason so use it or atleast store the result of GetMaxPlayers() before hand then use the result in the loop as doing it your way is adding a ton of function calls which is slower not "MUCH better".
Reply


Messages In This Thread
Scores for stunting - by CAMERON_BANFIELD - 23.03.2009, 08:00
Re: Scores for stunting - by watkijkje - 23.03.2009, 08:21
Re: Scores for stunting - by Kinetic - 23.03.2009, 08:47
Re: Scores for stunting - by Dujma - 23.03.2009, 08:50
Re: Scores for stunting - by Kinetic - 23.03.2009, 08:51
Re: Scores for stunting - by watkijkje - 23.03.2009, 08:55
Re: Scores for stunting - by Kinetic - 23.03.2009, 08:59
Re: Scores for stunting - by Donny_k - 23.03.2009, 09:01
Re: Scores for stunting - by watkijkje - 23.03.2009, 09:02
Re: Scores for stunting - by Dujma - 23.03.2009, 09:06

Forum Jump:


Users browsing this thread: 1 Guest(s)