MySQL Error - 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 (
/showthread.php?tid=616832)
MySQL Error -
Gotham - 11.09.2016
Hello guys,
I'm getting an error OnGamemodeInit()
Код:
error 017: undefined symbol "LOG_ALL"
Please help me , thanks in advance!
Re: MySQL Error -
Konstantinos - 11.09.2016
In R40
LOG_ was removed from the constants.
LOG_ALL is now
ALL.
Also keep in mind that logging everything will slow down, better have the default (ERROR | WARNING).
Re: MySQL Error -
Gotham - 11.09.2016
Now I've completed doing it , now I get these errors:
Код:
error 017: undefined symbol "cache_get_field_content_int"
error 017: undefined symbol "cache_get_field_content_int"
error 017: undefined symbol "cache_get_field_content_int"
error 017: undefined symbol "cache_get_field_content_float"
error 017: undefined symbol "cache_get_field_content_float"
error 017: undefined symbol "cache_get_field_content_float"
error 017: undefined symbol "cache_get_field_content_float"
error 017: undefined symbol "cache_get_data"
error 017: undefined symbol "cache_get_field_content"
error 017: undefined symbol "cache_get_field_content_int"
Re: MySQL Error -
Konstantinos - 11.09.2016
The name of those functions have been changed and cache_..._int/float functions do not return the value but is passed by reference. cache_get_data was removed, use cache_num_rows() to get the rows.
Refer to:
https://sampforum.blast.hk/showthread.php?tid=616103
Re: MySQL Error -
Gotham - 11.09.2016
This thread is long,
I get One MORE ERROR!
Код:
error 010: invalid function or declaration
I'm a newbie to MySQL
Re: MySQL Error -
Konstantinos - 11.09.2016
Post the line given that error (mark it so we can know which one it is) and few lines before and after.
Re: MySQL Error -
Gotham - 11.09.2016
Its ok now,
I had two returns
Код:
return true;
}
return 1;
}
Though ,Can I add more things on it?