Problem with timer
#1

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!");
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)