SA-MP Forums Archive
y_timers not calling tasks? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: y_timers not calling tasks? (/showthread.php?tid=415568)



y_timers not calling tasks? - lavamike - 13.02.2013

Not sure if it's just me or but I wanted to change my simple speedo to use y_timers ptask, but it seems to just not be called at all, tried a test task as well and nothing. Does y_timers work with 0.3x?

pawn Код:
#include <a_samp>
#include <YSI\y_timers>
ptask SpeedoUpdate[500](playerid)
{
    printf("DBG: SpeedoUpdate[500](%i)",playerid);
    if(IsPlayerInAnyVehicle(playerid))
    {
        new kph = GetPlayerSpeed(playerid);
        new string[5];
        format(string, sizeof(string), "%i", kph);
        TextDrawSetString(speedval[playerid], string);
    }
}
That should be all right? Even in just a blank test script I get nothing. http://pastebin.com/m2nMy0uf
edit: and yes i've downloaded the latest YSI