One global timer vs. multiple timers
#16

Quote:
Originally Posted by LocMax
View Post
Well this is basically one example how it does:

pawn Code:
if(PlayerInfo[i][Jail] > 0) PlayerInfo[i][Jail]--;
else if(PlayerInfo[i][Jail] == 0)
{
      unjail
}
So you think it'd be better if it was OnPlayerUpdate?
Performance-wise, wouldn't make any lag and so on?
This example should DEFINITLY be done in OnPlayerUpdate. However, you need to use time checking instead of constantly reducing. You need to use timestamps.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)