SA-MP Forums Archive
Mysql plugin - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Mysql plugin (/showthread.php?tid=278351)



Mysql plugin - marvin.m - 21.08.2011

Hello,

i have a little problem... my mysql plugin doesn't work.
i have putt it in the plugins ordner but it doesn't work.

Server start errors:
....
[23:42:54] Loading plugin: mysql.so
[23:42:54] SA:MP MySQL Plugin v2.1.1 Loaded.
[23:42:54] Loaded.
[23:42:54] Loaded 1 plugins.
.....
Script[gamemodes/xxx.xxx.amx]: Run time error 19: "File or function is not found"


Re: Mysql plugin - Kingmac - 22.08.2011

man mysql plugin has loaded correctly maybe you haven't loaded any other plugins like streamer or something anyway it is not the problem with the mysql plugin


AW: Mysql plugin - marvin.m - 22.08.2011

gcc -c -O3 -w -DLINUX -Wall -I../SDK/amx/ ../SDK/amx/*.c
g++ -c -O3 -w -DLINUX -Wall -I../SDK/amx/ ../SDK/*.cpp
g++ -c -O3 -w -DLINUX -Wall -I../SDK/amx/ main.cpp
g++ -c -O3 -w -DLINUX -Wall -I../SDK/amx/ source/*.cpp
g++ -O2 -fshort-wchar -shared -o "../mysql.so" *.o -L/usr/lib/mysql -lmysqlclient_r -lpthread
/usr/bin/ld: CAmxString.o: relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC
CAmxString.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [all] Error 1

When i compile the mysql files then coms this errrors... why?


Re: Mysql plugin - Kingmac - 22.08.2011

this you got it from server_log.txt ?