SA-MP Forums Archive
A few problems in one function - 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: A few problems in one function (/showthread.php?tid=510058)



Fixed. - SomebodyAndMe - 29.04.2014

Fixed.


Re: A few problems in one function - Roel - 29.04.2014

Well start by removing the: break;
Not sure, but I guess that should fix the only one car bug.
Didnt script for a while in pawn so I may be wrong.


Re: A few problems in one function - SomebodyAndMe - 29.04.2014

@Roel that doesn't fix anything unfortunately. I already tried that.

My debug only returns 1 row, maybe it can't query everything?


Re: A few problems in one function - Roel - 29.04.2014

Well I have took a further look, but you are using a old version of mysql plugin, which is not a problem, but im not really familiar with it, but I have looked at the wiki and should use this;
while(mysql_retrieve_row())
then inside the while use mysql_fetch_field_row
Take a look at
https://sampwiki.blast.hk/wiki/MySQL#mysql_retrieve_row

There is more here.


Re: A few problems in one function - SomebodyAndMe - 29.04.2014

Fixed


Re: A few problems in one function - SomebodyAndMe - 30.04.2014

Anyone? (Upping the topic)