SA-MP Forums Archive
Fixed. - 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: Fixed. (/showthread.php?tid=156269)



Fixed. - Antonio [G-RP] - 21.06.2010

Fixed.


Re: INSERTing cars in MySQL - per~fectionist - 21.06.2010

Код:
format(Query, sizeof(Query), "INSERT INTO `vehicles` (model, x, y, z, o, color1, color2, respawndelay, ownable, ownerid, factionid, jobid, fuel, tag) VALUES('%d', '%f', '%f', '%f', '%f', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%s', model, x, y, z, o, col1, col2, respawndelay, ownable, ownerid, factionid, jobid, fuel, vehtag)");
u forgot to close ur " and a ')' don't know if this fixes it tho ^^


Re: INSERTing cars in MySQL - Antonio [G-RP] - 21.06.2010

I'll give it a try, thanks.

EDIT: Didn't work, but I fixed it myself. Thanks


Re: INSERTing cars in MySQL - Carlton - 21.06.2010

Remove the ' from the %ds'.


Re: INSERTing cars in MySQL - Antonio [G-RP] - 21.06.2010

No need. It worked.