SA-MP Forums Archive
mysql_insert_id() always returns 0. - 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_insert_id() always returns 0. (/showthread.php?tid=402657)



mysql_insert_id() always returns 0. - GiamPy. - 27.12.2012

For some reason, mysql_insert_id() always returns 0.
Why? I am using the R7 plugin of BlueG.


Re: mysql_insert_id() always returns 0. - SuperViper - 27.12.2012

You need to use that after an insert statement. You can only use that inside of the callback which is specified in mysql_function_query.


Re: mysql_insert_id() always returns 0. - GiamPy. - 27.12.2012

Got it.