My Timer Problem
#1

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
}
Reply
#2

pawn Код:
forward OnPlayerOneSecondUpdate
has to be
pawn Код:
forward OnPlayerOneSecondUpdate();
Reply
#3

Quote:
Originally Posted by Sascha
Посмотреть сообщение
pawn Код:
forward OnPlayerOneSecondUpdate
has to be
pawn Код:
forward OnPlayerOneSecondUpdate();
I forgot to make that in my Post but its done in my Script i will edit the post.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)