SA-MP Forums Archive
Mysql Problems - Not loading. - 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 Problems - Not loading. (/showthread.php?tid=590910)



Mysql Problems - Not loading. - Ryan50 - 05.10.2015

When i run the server, it shows the server is unkowned

Код:
 > MySQL plugin R7 successfully loaded.

[04:13:40]   Loaded.
[04:13:40]  Loaded 3 plugins.

[04:13:40] 
[04:13:40] Filterscripts
[04:13:40] ---------------
[04:13:40]   Loaded 0 filterscripts.

[04:13:40] Script[gamemodes/CLEANGM.amx]: Run time error 19: "File or function is not found"
[04:13:40] Number of vehicle models: 0
Server settings:

Код:
echo Executing Server Config...
lanmode 0
rcon_password new123
maxplayers 50
port 7777
hostname ERPTestEmptyGM
gamemode0 CLEANGM 1
filterscripts 
announce 0
query 1
chatlogging 0
weburl www.sa-mp.com
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 0
logtimeformat [%H:%M:%S]
plugins sscanf streamer mysql
Logging to the database
Код:
#define DB_HOST "127.0.0.1"
#define DB_USER "root"
#define DB_PASS ""
#define DB_NAME "samp"



Re: Mysql Problems - Not loading. - Hybris - 05.10.2015

Download nativechecker.dll and post the server log afterwards


Re: Mysql Problems - Not loading. - Ryan50 - 05.10.2015

Quote:
Originally Posted by Hybris
Посмотреть сообщение
Download nativechecker.dll and post the server log afterwards
Where i put nativechecker.dll at?


Re: Mysql Problems - Not loading. - Hybris - 05.10.2015

put it in your plugins folder and on the server.cfg where it says plugins


Re: Mysql Problems - Not loading. - Ryan50 - 05.10.2015

Quote:
Originally Posted by Hybris
Посмотреть сообщение
put it in your plugins folder and on the server.cfg where it says plugins
Ok thanks i got this error


Код:
  > MySQL plugin R7 successfully loaded.

[04:50:58]   Loaded.
[04:50:58]  Loading plugin: nativechecker
[04:50:58]   Loaded.
[04:50:58]  Loaded 4 plugins.

[04:50:58] 
[04:50:58] Filterscripts
[04:50:58] ---------------
[04:50:58]   Loaded 0 filterscripts.

[04:50:58]    Error: Function not registered: 'mysql_tquery'
[04:50:58]    Error: Function not registered: 'cache_get_row_count'
[04:50:58]    Error: Function not registered: 'cache_get_row_int'
[04:50:58]    Error: Function not registered: 'cache_get_row_float'
[04:50:58] Script[gamemodes/CLEANGM.amx]: Run time error 19: "File or function is not found"
[04:50:58] Number of vehicle models: 0



Re: Mysql Problems - Not loading. - Hybris - 05.10.2015

Do you have at the top of your script #include <a_mysql>?
Also in pawno/include a_mysql.inc


Re: Mysql Problems - Not loading. - Ryan50 - 05.10.2015

Quote:
Originally Posted by Hybris
Посмотреть сообщение
Do you have at the top of your script #include <a_mysql>?
Also in pawno/include a_mysql.inc
yes i got that.


Re: Mysql Problems - Not loading. - AbyssMorgan - 05.10.2015

you need libmySQL.dll
http://www.dll-files.com/dllindex/dl...shtml?libmysql
P.S. nativechecker must be the last


Re: Mysql Problems - Not loading. - Prokill911 - 05.10.2015

Lol all the above are wrong...
You're being told

[04:50:58] Error: Function not registered: 'mysql_tquery'
[04:50:58] Error: Function not registered: 'cache_get_row_count'
[04:50:58] Error: Function not registered: 'cache_get_row_int'
[04:50:58] Error: Function not registered: 'cache_get_row_float'

So obviously..
You've compiled your .pwn to .amx using the wrong SQL Version to what your server is using.

Stop using outdated SQL's ...
You're using R7 when R39 or w,e is out