23.07.2011, 05:44
Quote:
That piece of code is a bit off, you're calling a callback but without giving it the parameter it looks for? That means this timer will only work for a single person (id 0), because the value of playerid will default to 0 since you're not passing another value to it.
Instead of using SetTimer for this example, you would need to use SetTimerEx and pass an ID along to the callback, like it's expecting you to! For example: pawn Код:
Please make sure you're posting proper examples in this section when responding to threads, otherwise people will be mis-lead by in-correct information! As for the original poster, I recommend instead of waiting for help here, that you use the SA-MP Wiki which has absolutely tons of extremely detailed information on all of the functions you can make use of. https://sampwiki.blast.hk/wiki/SetTimerEx That's one you should be looking at right now |
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?