Timer not working
#4

for(new i = 0, j = GetPlayerPoolSize(); i <= j; i ++) is what you should use. It stores the value retrieved by the function and stores it in a variable. The second part (after the first semicolon) is called every iteration (1, 2, 3, 4, etc.), so if you put the function in that part, it will execute the function and run the instructions of that function over and over (every iteration), which may slow down the loop.
Reply


Messages In This Thread
Timer not working - by GoldenLion - 17.11.2016, 18:22
Re: Timer not working - by SickAttack - 17.11.2016, 18:27
Re: Timer not working - by GoldenLion - 17.11.2016, 18:46
Re: Timer not working - by SickAttack - 17.11.2016, 18:53
Re: Timer not working - by GoldenLion - 17.11.2016, 19:11

Forum Jump:


Users browsing this thread: 1 Guest(s)