SA-MP Forums Archive
MySQL Error When Running server - 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 When Running server (/showthread.php?tid=517367)



MySQL Error When Running server - Jigsaw123 - 04.06.2014

Код:
[18:22:33]    Error: Function not registered: 'mysql_tquery'
[18:22:33]    Error: Function not registered: 'mysql_escape_string'
[18:22:33] Script[gamemodes/L-RP.amx]: Run time error 19: "File or function is not found"
[18:22:33] Number of vehicle models: 0
Can someone tell me how to fix this?


Re: MySQL Error When Running server - Jay_Dixon - 04.06.2014

Well, i'm no expert on MySQL, but I've seen enough to say, I think mysql_tquery, is supposed to be mysql_query,
and mysql_escape_string, should be mysql_real_escape_string. As for the AMX, try recompiling, see if it says anything in the compiler, such as warnings, and errors


Re: MySQL Error When Running server - Vince - 04.06.2014

Use the latest plugin. R33 or above.


Re: MySQL Error When Running server - Jigsaw123 - 04.06.2014

Код:
C:\Users\USER\Desktop\RP\gamemodes\L-RP.pwn(18105) : warning 203: symbol is never used: "IsABicycle"
C:\Users\USER\Desktop\RP\gamemodes\L-RP.pwn(18105) : warning 203: symbol is never used: "SaveObject"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Warnings.
I get these warnings, Also how can i change it to mysql_query, and mysql_real_escape_string ?


Re: MySQL Error When Running server - Jigsaw123 - 04.06.2014

Now it says:

Код:
[18:39:03]    Error: Function not registered: 'mysql_tquery'
[18:39:03]    Error: Function not registered: 'mysql_escape_string'
[18:39:03]    Error: Function not registered: 'mysql_connect'
[18:39:03]    Error: Function not registered: 'mysql_close'
[18:39:03]    Error: Function not registered: 'cache_get_data'
[18:39:03]    Error: Function not registered: 'cache_get_field_content'
[18:39:03] Script[gamemodes/L-RP.amx]: Run time error 19: "File or function is not found"
[18:39:03] Number of vehicle models: 0