SA-MP Forums Archive
MySQL is lying to me - 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 is lying to me (/showthread.php?tid=360885)



cache_get_data is returning strange numbers - ReneG - 19.07.2012

Here is the code http://pastebin.com/42Wk3Skh

The main issue is that.
pawn Код:
cache_get_data(rows, fields);
printf("Thread: %d Rows: %d Fields: %d", resultid, rows, fields);
prints out
Код:
Thread: 1 Rows: 1598245947 Fields: 1128088916
Even when the name doesn't exist in the database.