SA-MP Forums Archive
g_mysql_SaveVehicle function doesn't work - 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: g_mysql_SaveVehicle function doesn't work (/showthread.php?tid=616320)



g_mysql_SaveVehicle function doesn't work - SamBum - 03.09.2016

I have try to use timer to run this function, It's running Ok but g_myslq_savevehicle doesn't work. It's not saving vehicle status of player. I don't know why.
Код:
forward Luuphuongtien(playerid);
public Luuphuongtien(playerid)
{
SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "Function Luuphuongtien running.");
new vehicleid = GetPlayerVehicleID(playerid);
new v = GetPlayerVehicle(playerid, vehicleid);
        if(v != -1)
        {
            g_mysql_SaveVehicle(playerid, v);
        }
return 1;
}