SA-MP Forums Archive
help mee!! - 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: help mee!! (/showthread.php?tid=619538)



help mee!! - Capotte - 18.10.2016

hello again sorry for my bad English but I'm doing the auto save system but the error is that the car I keep the id 2 id 1 in

Quote:

new vehicleid = GetPlayerVehicleID(playerid);
new query[400];
format(query, 400, "UPDATE `autos` SET `posx`= %f,`posy`= %f,`posz`= %f,`vangle`= %f WHERE `vid` ='%d'", p[0], p[1], p[2], p[3], VehicleInfo[vehicleid][vvid]);
mysql_function_query(TuberiasMySQL, query, true, "OnQueryFinish", "ii", 0, playerid);




Re: help mee!! - SickAttack - 19.10.2016

VehicleInfo[vehicleid][vvid] should be the SQL ID.


Re: help mee!! - Capotte - 19.10.2016

Quote:
Originally Posted by SickAttack
Посмотреть сообщение
VehicleInfo[vehicleid][vvid] should be the SQL ID.

and as you do you explain me please do not understand

Vehicle Info [vehicleid] [vvid] load perfectly