Question - Days counting system on MySQL sistem. [REP ++ for the best answer]
#3

You can do something like this, maybe?

pawn Код:
public OnVehicleCreation(vehicleid)
{
    new day;
    Born[vehicleid] = getdate(day, day, day);
    return true;
}

stock GetCarAge(vehicleid)
{
    new tmpage, day;
    tmpage = Born[vehicleid] - getdate(day, day, day);
    return tmpage;
}
Something like this? Or, if it's purely MySQL then see event scheduling,
https://sampforum.blast.hk/showthread.php?pid=3258877#pid3258877
Reply


Messages In This Thread
Question - Days counting system on MySQL sistem. [REP ++ for the best answer] - by buburuzu19 - 22.11.2014, 18:46
Re: Question - Days counting system on MySQL sistem. [REP ++ for the best answer] - by Vince - 22.11.2014, 19:27
Re: Question - Days counting system on MySQL sistem. [REP ++ for the best answer] - by Abagail - 22.11.2014, 19:31

Forum Jump:


Users browsing this thread: 2 Guest(s)