31.01.2015, 12:13
I have server running on VPS.VPS has no lag and has no more ping than 60.I have one timer that is working every 1 second.
And this function is just decrementing player variable. Im using foreach loop in function. Problem is when i connect for first time on server everything about timer works fine, after some time function/timer just stop(im not sure what is not working).And then i have to restart my server via game panel.Im using if statment to check if is player connect
I never had any problem like this before. I have this server running for like 2.5 years and im using same system for 2.5 years.
Код:
SetTimer("FunctionName", 1000, true);
Код:
if(!IsPlayerConnected(i)) continue;