13.02.2013, 18:45
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?
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
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);
}
}
edit: and yes i've downloaded the latest YSI