09.08.2011, 13:16
I made a simple timer that will be called every one second, i wanted to test But it didn't work here's my code, please tell me if i'm doing something wrong.
pawn Код:
//At the top of the script
forward OnPlayerOneSecondUpdate();
//Under OnGameModeInit
SetTimer("OnPlayerOneSecondUpdate", 1000, true);
//And here's the callback
public OnPlayerOneSecondUpdate()
{
SendClientMessageToAll(GREY, "Testing..."); //This should send "Testing" every second to All the players right? but its not..
return 1
}