Optimization
#5

The differents between this two timers that in the second code you using loop to send all players.
better thing to do is
Код:
for(new i=0; i < MAX_PLAYERS+1; i++)
{
      if(IsPlayerConnected(i))
      {
            //Sending the message
      }
}
THis code is sending the message to conntected players..making your script more optimization.
Reply


Messages In This Thread
Optimization - by Etolas - 20.02.2015, 07:00
Re: Optimization - by Kenway - 20.02.2015, 07:04
Re: Optimization - by Etolas - 20.02.2015, 07:06
Re: Optimization - by CalvinC - 20.02.2015, 07:09
Re: Optimization - by Kenway - 20.02.2015, 07:10
Re: Optimization - by Etolas - 20.02.2015, 07:12
Re: Optimization - by arakuta - 20.02.2015, 10:13
Re: Optimization - by AndySedeyn - 20.02.2015, 10:30
Re: Optimization - by CalvinC - 20.02.2015, 10:39
Re: Optimization - by Kyance - 20.02.2015, 13:02

Forum Jump:


Users browsing this thread: 1 Guest(s)