MySQL problem...
- Xahaz
- Geschlossen
- Erledigt
-
-
Immer noch das selbe..
-
Hast du das Script auch mit der neuen MySQL Version compilet?
-
Wenn ich complire kommen diese Error's :X
C:\Users\Resan\Desktop\dd\gamemodes\DRP.pwn(5896) : error 017: undefined symbol "mysql_query"
C:\Users\Resan\Desktop\dd\gamemodes\DRP.pwn(5986) : error 017: undefined symbol "mysql_query"
C:\Users\Resan\Desktop\dd\gamemodes\DRP.pwn(6227) : error 017: undefined symbol "mysql_query"
C:\Users\Resan\Desktop\dd\gamemodes\DRP.pwn(6312) : error 017: undefined symbol "mysql_query"
C:\Users\Resan\Desktop\dd\gamemodes\DRP.pwn(57650) : warning 224: indeterminate array size in "sizeof" expression (symbol "max_len")
C:\Users\Resan\Desktop\dd\gamemodes\DRP.pwn(57741) : warning 224: indeterminate array size in "sizeof" expression (symbol "max_len")
C:\Users\Resan\Desktop\dd\gamemodes\DRP.pwn(57904) : warning 203: symbol is never used: "strtock"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase4 Errors.
-
Hm, immer noch die falsche MySQL Version.
-
>klick mich< <-- das da
-
Also was dir fehlt ist einfach die libmysql für Linux...
Die r16 libmysql ist ultra schwer zu finden... Ich hatte sie mir irgendwo gebackuppt.
Schau mal nach einer Stable Version des Plugins
Dieses liefert dann diese lib mit.
Hatte lange genug damit Probleme.Nimm das Plugin, dass du auch anfangst genutzt hast.
Ich hoffe du hast das Include noch. Wenn nicht mehr .. doof
Wenn ja: Die Version steht in dem includeGrüße
-
@dark.shadow: oder er nimmt das r5 was ich ihm gegeben hab und er hat die mysql_query probleme nicht
-
Ich brauch die aber für Linux
-
Hast du es mit der Stable Version deines Alten Plugins versucht?
Also das was du ganz am anfang hattest...
@.x22 Zieglein: Du hast den Doppelpunkt beim direkten Anschreiben vergessen
-
-
Also habe jetzt mal das von Zieglein ausprobiert, die Errors gingen weg, aber trozdem startet der server nicht
@Dark.Shadow: Ja habe ich.. funktioniert leider nicht.
Wäre besser wenn ihr mir per Teamviewer helfen würdet
-
Immer noch der gleiche Fehler in der Server Log?
-
@Nova_:
Nichts gegen dich aber wenn wir das hier klären, hilft es wohl etwa 100 Usern mehr.Schreib uns doch mal was in dem Include steht vom alten MySQL Plugin
Dort wo dir der libmysqlclient_r_16.so gefehlt hat. -
----------
Loaded log file: "server_log.txt".
----------SA-MP Dedicated Server
----------------------
v0.3z-R2, (C)2005-2014 SA-MP Team[11:25:59]
[11:25:59] Server Plugins
[11:25:59] --------------
[11:25:59] Loading plugin: streamer.so
[11:25:59]*** Streamer Plugin v2.6 by Incognito loaded ***
[11:25:59] Loaded.
[11:25:59] Loading plugin: sscanf.so
[11:25:59][11:25:59] ===============================
[11:25:59] sscanf plugin loaded.
[11:25:59] (c) 2009 Alex "Y_Less" Cole
[11:25:59] 0.3d-R2 500 Players "dnee"
[11:25:59] ===============================
[11:25:59] Loaded.
[11:25:59] Loading plugin: mysql.so
[11:25:59] Failed (libssl.so.0.9.8: wrong ELF class: ELFCLASS64)
[11:25:59] Loading plugin: crashdetect.so
[11:25:59] crashdetect v4.5.1 is OK.
[11:25:59] Loaded.
[11:25:59] Loaded 3 plugins.[11:25:59]
[11:25:59] Filterscripts
[11:25:59] ---------------
[11:25:59] Loading filterscript 'haus.amx'...
[11:25:59] Loading filterscript 'objekt.amx'...
[11:25:59]
--------------------------------------
[11:25:59] Blank Filterscript by your name here
[11:25:59] --------------------------------------[11:25:59] Loaded 2 filterscripts.
[11:25:59] [debug] Run time error 19: "File or function is not found"
[11:25:59] [debug] The following natives are not registered:
[11:25:59] [debug] mysql_query
[11:25:59] [debug] mysql_store_result
[11:25:59] [debug] mysql_retrieve_row
[11:25:59] [debug] mysql_free_result
[11:25:59] [debug] mysql_fetch_field_row
[11:25:59] [debug] mysql_debug
[11:25:59] [debug] mysql_real_escape_string
[11:25:59] [debug] mysql_fetch_row_format
[11:25:59] [debug] mysql_connect
[11:25:59] [debug] mysql_ping
[11:25:59] [debug] Run time error 19: "File or function is not found"
[11:25:59] [debug] The following natives are not registered:
[11:25:59] [debug] mysql_query
[11:25:59] [debug] mysql_store_result
[11:25:59] [debug] mysql_retrieve_row
[11:25:59] [debug] mysql_free_result
[11:25:59] [debug] mysql_fetch_field_row
[11:25:59] [debug] mysql_debug
[11:25:59] [debug] mysql_real_escape_string
[11:25:59] [debug] mysql_fetch_row_format
[11:25:59] [debug] mysql_connect
[11:25:59] [debug] mysql_ping
[11:25:59] Script[gamemodes/DRP.amx]: Run time error 19: "File or function is not found"
[11:25:59] Number of vehicle models: 0----------
Loaded log file: "server_log.txt".
----------SA-MP Dedicated Server
----------------------
v0.3z-R2, (C)2005-2014 SA-MP Team[11:30:18]
[11:30:18] Server Plugins
[11:30:18] --------------
[11:30:18] Loading plugin: streamer.so
[11:30:18]*** Streamer Plugin v2.6.1 by Incognito loaded ***
[11:30:18] Loaded.
[11:30:18] Loading plugin: sscanf.so
[11:30:18][11:30:18] ===============================
[11:30:18] sscanf plugin loaded.
[11:30:18] (c) 2009 Alex "Y_Less" Cole
[11:30:18] 0.3d-R2 500 Players "dnee"
[11:30:18] ===============================
[11:30:18] Loaded.
[11:30:18] Loading plugin: mysql.so
[11:30:18] Failed (libssl.so.0.9.8: wrong ELF class: ELFCLASS64)
[11:30:18] Loading plugin: crashdetect.so
[11:30:18] crashdetect v4.5.1 is OK.
[11:30:18] Loaded.
[11:30:18] Loaded 3 plugins.[11:30:18]
[11:30:18] Filterscripts
[11:30:18] ---------------
[11:30:18] Loading filterscript 'haus.amx'...
[11:30:18] Loading filterscript 'objekt.amx'...
[11:30:18]
--------------------------------------
[11:30:18] Blank Filterscript by your name here
[11:30:18] --------------------------------------[11:30:18] Loaded 2 filterscripts.
[11:30:18] [debug] Run time error 19: "File or function is not found"
[11:30:18] [debug] The following natives are not registered:
[11:30:18] [debug] mysql_query
[11:30:18] [debug] mysql_store_result
[11:30:18] [debug] mysql_retrieve_row
[11:30:18] [debug] mysql_free_result
[11:30:18] [debug] mysql_fetch_field_row
[11:30:18] [debug] mysql_debug
[11:30:18] [debug] mysql_real_escape_string
[11:30:18] [debug] mysql_fetch_row_format
[11:30:18] [debug] mysql_connect
[11:30:18] [debug] mysql_ping
[11:30:18] [debug] Run time error 19: "File or function is not found"
[11:30:18] [debug] The following natives are not registered:
[11:30:18] [debug] mysql_query
[11:30:18] [debug] mysql_store_result
[11:30:18] [debug] mysql_retrieve_row
[11:30:18] [debug] mysql_free_result
[11:30:18] [debug] mysql_fetch_field_row
[11:30:18] [debug] mysql_debug
[11:30:18] [debug] mysql_real_escape_string
[11:30:18] [debug] mysql_fetch_row_format
[11:30:18] [debug] mysql_connect
[11:30:18] [debug] mysql_ping
[11:30:18] Script[gamemodes/DRP.amx]: Run time error 19: "File or function is not found"
[11:30:18] Number of vehicle models: 0 -
Schick mal die Include von dem Mysql plugin.
-
Zitat
/*
SA-MP MySQL plugin R5
Copyright (c) 2008-2010, G-sTyLeZzZ
*/#if defined mysql_included
#endinput
#endif
#define mysql_included//Common error codes (http://dev.mysql.com/doc/refman/5.0/en/error-messages-(client|server).html)
#define ER_DBACCESS_DENIED_ERROR 1044
#define ER_ACCESS_DENIED_ERROR 1045
#define ER_UNKNOWN_TABLE 1109
#define ER_SYNTAX_ERROR 1149
#define CR_SERVER_GONE_ERROR 2006
#define CR_SERVER_LOST 2013
#define CR_COMMAND_OUT_OF_SYNC 2014
#define CR_SERVER_LOST_EXTENDED 2055//Native functions
#define mysql_fetch_row(%1) mysql_fetch_row_format(%1,"|")
#define mysql_next_row() mysql_retrieve_row()
#define mysql_get_field(%1,%2) mysql_fetch_field_row(%2,%1)native mysql_affected_rows(connectionHandle = 1);
native mysql_close(connectionHandle = 1);
native mysql_connect(const host[],const user[],const database[],const password[]);
native mysql_debug(enable = 1);
native mysql_errno(connectionHandle = 1);
native mysql_fetch_int(connectionHandle = 1);
native mysql_fetch_field(number,dest[],connectionHandle = 1);
native mysql_fetch_field_row(string[],const fieldname[],connectionHandle = 1);
native mysql_fetch_float(&Float:result,connectionHandle = 1);
native mysql_fetch_row_format(string[],const delimiter[] = "|",connectionHandle = 1);
native mysql_field_count(connectionHandle = 1);
native mysql_free_result(connectionHandle = 1);
native mysql_get_charset(destination[],connectionHandle = 1);
native mysql_insert_id(connectionHandle = 1);
native mysql_num_rows(connectionHandle = 1);
native mysql_num_fields(connectionHandle = 1);
native mysql_ping(connectionHandle = 1);
native mysql_query(query[],resultid = (-1),extraid = (-1),connectionHandle = 1);
native mysql_query_callback(index,query[],callback[],extraid = (-1),connectionHandle = 1);
native mysql_real_escape_string(const source[],destination[],connectionHandle = 1);
native mysql_reconnect(connectionHandle = 1);
native mysql_reload(connectionHandle = 1);
native mysql_retrieve_row(connectionHandle = 1);
native mysql_set_charset(charset[],connectionHandle = 1);
native mysql_stat(const destination[],connectionHandle = 1);
native mysql_store_result(connectionHandle = 1);
native mysql_warning_count(connectionHandle = 1);//forward declarations
forward OnQueryFinish(query[], resultid, extraid, connectionHandle);
forward OnQueryError(errorid, error[], resultid, extraid, callback[], query[], connectionHandle); -
Mensch Leute, er verwendet das Falsche Plugin darin liegt das Problem die R8 Version verwendet andere natives als die älteren als R5 oder R6.
Da jedoch dein Skript nicht auf dem R8 oder höher basiert werden natives aufgerufen, welche nicht existiert somit bekommst du den runtime Error.Daher nutz die älteren Versionen R5 oder R6
Download:
http://forum.sa-mp.com/showthread.php?t=56564//edit
Dort oben in der Include steht ja auch nochmal für, welches Plugin die Include ist
ZitatSA-MP MySQL plugin R5
-
@Nova_:
Wenn ich dir schon über Skype helfe dann nimm bitte das von @|Prototype|: und mir an.
Benutz das R5 Plugin + Die Linux version die du hier finden kannst: klick mich -
@Nova_:
Wenn ich dir schon über Skype helfe dann nimm bitte das von @|Prototype|: und mir an.
Benutz das R5 Plugin + Die Linux version die du hier finden kannst: klick mich
Naja er kann auch die R8 Version nutzen nur muss er sein Skript umschreiben.
Aber da würde ich schon die neuste verwenden falls er es umschreiben möchte die R39 Version. -
Funktioniert Danke