28.12.2011, 17:39
Hello.
I have a little problem, and i'm desperate with this already - Everthing i tried failed, so i'm asking here for help. Here's the deal.
I do this in one of my custom functions -
It's a 50 millisecond timer which moves camera around player during the tutorial, so it's critical that i kill it at some point. But the timer won't even start. However, if i do -
It works for some reason. Until the point where i got to kill it, then it won't stop. I tried debuging it with printf's and messages and the timer won't start if i do SetTimerEx just once. No errors, warnings, nothing.
I tried it with y_timers too, and it just won't start.
I think this is SetTimerEx bug, because even if do
nothing happens.
Has anyone got any experience on this?
I have a little problem, and i'm desperate with this already - Everthing i tried failed, so i'm asking here for help. Here's the deal.
I do this in one of my custom functions -
Код:
SetTimerEx( "MovingCamera", MOVING_CAMERA_FPS, true, "i", playerid );
Код:
SetTimerEx( "MovingCamera", MOVING_CAMERA_FPS, true, "i", playerid ), SetTimerEx( "MovingCamera", MOVING_CAMERA_FPS, true, "i", playerid );
I tried it with y_timers too, and it just won't start.
I think this is SetTimerEx bug, because even if do
Код:
MovingCamera( playerid ) { print( "It works!" ); return true; }
Has anyone got any experience on this?