SA-MP Forums Archive
Problem with timer - 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: Problem with timer (/showthread.php?tid=509440)



Problem with timer - AA9 - 26.04.2014

Timer, what check rented car, should remove 1 rent minute after each 1 minute. It removes, but if it needs to check, is rent time equalt to three, it doesn't do it. Rent time decreases but it don't check, is rent time 3.
pawn Код:
public AUTORENT(playerid)
{
    pInfo[playerid][Rendiautoaeg] -= 1;
    pInfo[playerid][Sularaha] -= 15;
    if(pInfo[playerid][Rendiautoaeg] == 3) SCM(playerid, V_KOLLANE, "TEADE: Sinu sхiduki rendiaja lхpuni on 3 minutit! /pikendarsхiduk, et rendiaega pikendada. Kui sa rendiaega ei pikenda, siis sinu sхiduk respawnib automaatselt!");
}