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



Mysql vehicle. - budelis - 04.11.2011

Hi all. Maybe anybody can say me how to start do car loading with mysql system? i try do it myself here is code:

f
Код:
or(new i = 1; i < 10; i++)
{
new Query[ 50 ];
format( Query,sizeof( Query ),"SELECT * FROM masinos1 WHERE `MasinosID` = '%d'",i);
mysql_query(Query);
mysql_store_result();
while(mysql_fetch_row_format(Query, "|"))
{
But this doesn't work.


Re: Mysql vehicle. - Jochemd - 04.11.2011

Fetch the line and use sscanf to split it.


Re: Mysql vehicle. - budelis - 04.11.2011

I don't understand what i have do? maybe give example