Help with timer.
#6

Quote:
Originally Posted by Shockey HD
Посмотреть сообщение
Haha okay, will take my time to look at this info :]

EDIT:

Looking over it, im understanding that except one part,

public message(second, msg[])

I know i would replace "message" with my timer's name but what about "second, msg"? i dont think i see anything about it.

Also, activating the timer, when the command is activated. Would the timer still go under OnGameModeInt?
The name "message" is the name of the callback, it's the name you need to use in the timer function in order to execute the callback in a set amount of time. "second" and "msg[]" are parameters, second is an integer and msg is a string. These are the parameters that the user passes to the callback in order to define the message to be sent and the amount of seconds it took, it's actually a strange example, but it does explain things.

Activating the timer should be done wherever you are planning on activating it, it doesn't have to be done under OnGameModeInit or any other callback. If you want it to be activated when someone writes a command, then put it under the command in OnPlayerCommandText!
Reply


Messages In This Thread
Help with timer. - by Shockey HD - 23.07.2011, 05:24
Re: Help with timer. - by Kitten - 23.07.2011, 05:32
Re: Help with timer. - by Shockey HD - 23.07.2011, 05:38
Re: Help with timer. - by JaTochNietDan - 23.07.2011, 05:43
Re: Help with timer. - by Shockey HD - 23.07.2011, 05:44
Re: Help with timer. - by JaTochNietDan - 23.07.2011, 13:27

Forum Jump:


Users browsing this thread: 1 Guest(s)