SA-MP Forums Archive
BlueG MySQL - returning values from mysql_function_query - 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: BlueG MySQL - returning values from mysql_function_query (/showthread.php?tid=581542)



BlueG MySQL - returning values from mysql_function_query - Jingles - 13.07.2015

Hi!

I wanted to use the returned value from the callback in mysql_function_query, but it only seems to return 0 or 1.
Ex.: mysql_function_query(dbhandle, "SELECT `phonenr` FROM `chars` WHERE `id` = '0' LIMIT 1", true, "OnCheckExist", "i", playerid);

OnCheckExist should return the phone number.

Cheers,
Jingles