Vehicle problem. - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Vehicle problem. (
/showthread.php?tid=246963)
Vehicle problem. -
Rokzlive - 06.04.2011
NVM i got it.
Re: Vehicle problem. -
mick88 - 07.04.2011
I think you should set value to variable ID before this:
pawn Код:
format(String, sizeof(String), "SELECT * FROM `ownedcars` WHERE `ID` = %i", ID);
Also, when player enters vehicle, you are checking the vehicledata at vehicleid index which is incorrect because when you load vehicle, the ID is different than vehicleid.