Problem with timer in linux server
#1

I have this timer:
PHP код:
public OnGameModeInit()
{
SetTimer("OnUpdateEx",1000,true);
}
forward OnUpdateEx();
public 
OnUpdateEx()
{
foreach(
Playeri)
{
SendClientMessage(i,COLOR_YELLOW,"Hi");
}

and this not send message to players. this work in windows server but in linux this is not work
Reply
#2

Have you tried with a normal for-loop? I'm not saying it is, but foreach might be bugged on Linux platform, as I can't find any faulty stuff with your code.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)