SA-MP Forums Archive
Mysql error/warning - 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 error/warning (/showthread.php?tid=563364)



Mysql error/warning - Banditukas - 15.02.2015

Hi,

I get these warnings/errors in mysql.log

Код:
[WARNING] CMySQLResult::GetRowData - invalid row ('0') or field index ('2')
[ERROR] cache_get_row_int - invalid datatype
How to know in what exatly place is this error (in code)?


Re: Mysql error/warning - HazardouS - 15.02.2015

Look for all functions where "cache_get_row_int" is used without checking if the active result set actually exists, i.e. more than 0 rows were found. You'll have to add this check before loading the result.