19.09.2014, 17:05
GIVE ME WORKING LINK FOR ALREADY COMPILED MYSQL R7 FOR UBUNTU LINUX!
FUCK YOU AND YOUR NEWER PLUGINS ALREADY |
---------- Loaded log file: "server_log.txt". ---------- SA-MP Dedicated Server ---------------------- v0.3z-R2, ©2005-2014 SA-MP Team [23:49:02] [23:49:02] Server Plugins [23:49:02] -------------- [23:49:02] Loading plugin: streamer [23:49:02] Loaded. [23:49:02] Loading plugin: sscanf [23:49:02] [23:49:02] =============================== [23:49:02] sscanf plugin loaded. [23:49:02] Version: 2.8.1 [23:49:02] © 2012 Alex "******" Cole [23:49:02] =============================== [23:49:02] Loaded. [23:49:02] Loading plugin: mysql [23:49:02] Failed. [23:49:02] Loading plugin: MapAndreas [23:49:02] Loaded. [23:49:02] Loading plugin: FCNPC [23:49:02] [23:49:02] ------------------------------------------------- [23:49:02] FCNPC - Fully Controllable NPC v0.1 B12 [23:49:02] [23:49:02] - Author: OrMisicL [23:49:02] - Build: Jun 2 2014 at 19:05:32 [23:49:02] ------------------------------------------------- [23:49:02] [23:49:02] Loading ... [23:49:02] SAMP Server version 0.3z R2-2 (Windows) detected. Initializing ... [23:49:02] Loaded. [23:49:02] Loading plugin: iTD [23:49:02] * iTD Plugin loaded. (Support for textdraw editor mouse/keyboard) [23:49:02] Loaded. [23:49:02] Loading plugin: Whirlpool [23:49:02] [23:49:02] ================== [23:49:02] [23:49:02] Whirlpool loaded [23:49:02] [23:49:02] ================== [23:49:02] [23:49:02] Loaded. [23:49:02] Loading plugin: nativechecker [23:49:02] Loaded. [23:49:02] Loading plugin: crashdetect [23:49:02] CrashDetect v4.13 is OK. [23:49:02] Loaded. [23:49:02] Loaded 8 plugins. [23:49:02] [23:49:02] Filterscripts [23:49:02] --------------- [23:49:02] Loading filterscript 'iTD.amx'... [23:49:02] iPLEOMAX's TextDraw Editor loaded successfully! Version: 1.16 Stable (13/10/2012) [23:49:02] Loading filterscript 'TD.amx'... [23:49:02] -------------------------------------- [23:49:02] Text Draw Editor 1.0RC2 by Zamaroht for SA-MP 0.3 Loaded. [23:49:02] -------------------------------------- [23:49:02] Loaded 2 filterscripts. [23:49:02] Error: Function not registered: 'mysql_log' [23:49:02] Error: Function not registered: 'mysql_connect' [23:49:02] Error: Function not registered: 'mysql_errno' [23:49:02] Error: Function not registered: 'mysql_format' [23:49:02] Error: Function not registered: 'mysql_tquery' [23:49:02] Error: Function not registered: 'mysql_close' [23:49:02] Error: Function not registered: 'mysql_query' [23:49:02] Error: Function not registered: 'cache_get_row_count' [23:49:02] Error: Function not registered: 'cache_get_field_content' [23:49:02] Error: Function not registered: 'cache_delete' [23:49:02] Error: Function not registered: 'cache_get_data' [23:49:02] Error: Function not registered: 'cache_get_field_content_int' [23:49:02] Error: Function not registered: 'cache_insert_id' [23:49:02] Error: Function not registered: 'cache_get_field_content_float' [23:49:02] [debug] Run time error 19: "File or function is not found" [23:49:02] [debug] mysql_log [23:49:02] [debug] mysql_connect [23:49:02] [debug] mysql_errno [23:49:02] [debug] mysql_format [23:49:02] [debug] mysql_tquery [23:49:02] [debug] mysql_close [23:49:02] [debug] mysql_query [23:49:02] [debug] cache_get_row_count [23:49:02] [debug] cache_get_field_content [23:49:02] [debug] cache_delete [23:49:02] [debug] cache_get_data [23:49:02] [debug] cache_get_field_content_int [23:49:02] [debug] cache_insert_id [23:49:02] [debug] cache_get_field_content_float [23:49:02] [debug] Run time error 19: "File or function is not found" [23:49:02] [debug] mysql_log [23:49:02] [debug] mysql_connect [23:49:02] [debug] mysql_errno [23:49:02] [debug] mysql_format [23:49:02] [debug] mysql_tquery [23:49:02] [debug] mysql_close [23:49:02] [debug] mysql_query [23:49:02] [debug] cache_get_row_count [23:49:02] [debug] cache_get_field_content [23:49:02] [debug] cache_delete [23:49:02] [debug] cache_get_data [23:49:02] [debug] cache_get_field_content_int [23:49:02] [debug] cache_insert_id [23:49:02] [debug] cache_get_field_content_float [23:49:02] Script[gamemodes/thescriptname.amx]: Run time error 19: "File or function is not found" [23:49:02] Number of vehicle models: 0 |
Okay, so I have tried every freaking thing that could be possibly done.
I have .NET Framework 4 installed, all the VC++ redistributable packages installed with their x64 packages too. I have tried re-installing all of this, I have tried restarting my PC ALOT of times and I have put everything in place, the plugin in the plugin folder, the libmysql.dll in the server files folder and everything that I think needs to be done is done! YET the freaking plugin wont LOAD -_- PLEASE HELP ME! I AM VERY MUCH FREAKING ANNOYED AFTER TRYING ALL DAY LONG! I am running windows 7 64-bit. |
forward CheckAccountBan(sqlpid); // Permet de check un compte ban (Pour un unban, une connexion etc).
public CheckAccountBan(sqlpid)
{
new query[64];
mysql_format(mysql, query, sizeof(query), "SELECT Locked FROM srp_players_stats WHERE id = %d LIMIT 1", sqlpid);
mysql_tquery(mysql, query, "RetournerID", "");
return 1;
}
forward RetournerID();
public RetournerID()
{
if(!cache_num_rows())
{
return 0;
}
return cache_get_row_int(0, 0); // Retourne si le compte est locked ou non.
}
printf("%d", cache_get_row_int(0, 0));
printf("%d", CheckAccountBan(playerid));
[21:46:00] [DEBUG] mysql_connect - host: "localhost", user: "root", database: "root", password: "****", port: 3306, autoreconnect: true, pool_size: 2
[21:46:00] [DEBUG] CMySQLHandle::Create - creating new connection..
[21:46:00] [DEBUG] CMySQLHandle::CMySQLHandle - constructor called
[21:46:00] [DEBUG] CMySQLHandle::Create - connection created (id: 1)
[21:46:00] [DEBUG] CMySQLConnection::Connect - establishing connection to database...
[21:46:00] [DEBUG] CMySQLConnection::Connect - connection was successful
[21:46:00] [DEBUG] CMySQLConnection::Connect - auto-reconnect has been enabled
[21:46:00] [DEBUG] CMySQLConnection::Connect - establishing connection to database...
[21:46:00] [DEBUG] CMySQLConnection::Connect - establishing connection to database...
[21:46:00] [DEBUG] CMySQLConnection::Connect - establishing connection to database...
[21:46:01] [DEBUG] CMySQLConnection::Connect - connection was successful
[21:46:01] [DEBUG] CMySQLConnection::Connect - auto-reconnect has been enabled
[21:46:01] [DEBUG] CMySQLConnection::Connect - connection was successful
[21:46:01] [DEBUG] CMySQLConnection::Connect - auto-reconnect has been enabled
[21:46:01] [DEBUG] CMySQLConnection::Connect - connection was successful
[21:46:01] [DEBUG] CMySQLConnection::Connect - auto-reconnect has been enabled
[21:47:06] [DEBUG] mysql_format - connection: 1, len: 256, format: "SELECT id FROM srp_players_stats WHERE Name = LOWER('%e') LIMIT 1"
[21:47:06] [DEBUG] mysql_tquery - connection: 1, query: "SELECT id FROM srp_players_stats WHERE Name = LOWER('Test_Max')", callback: "ReturnID", format: "(null)"
[21:47:06] [DEBUG] mysql_format - connection: 1, len: 64, format: "SELECT Locked FROM srp_players_stats WHERE id = %d LIMIT 1"
[21:47:06] [DEBUG] mysql_tquery - connection: 1, query: "SELECT Locked FROM srp_players_stats WHERE id = 1 LIMIT 1", callback: "RetournerID", format: "(null)"
[21:47:06] [DEBUG] mysql_format - connection: 1, len: 64, format: "SELECT Locked FROM srp_players_stats WHERE id = %d LIMIT 1"
[21:47:06] [DEBUG] mysql_tquery - connection: 1, query: "SELECT Locked FROM srp_players_stats WHERE id = 1 LIMIT 1", callback: "RetournerID", format: "(null)"
[21:47:06] [DEBUG] CMySQLQuery::Execute[ReturnID] - starting query execution
[21:47:06] [DEBUG] CMySQLQuery::Execute[ReturnID] - query was successfully executed within 1.501 milliseconds
[21:47:06] [DEBUG] CMySQLResult::CMySQLResult() - constructor called
[21:47:06] [DEBUG] CMySQLQuery::Execute[RetournerID] - starting query execution
[21:47:06] [DEBUG] CMySQLQuery::Execute[RetournerID] - query was successfully executed within 1.315 milliseconds
[21:47:06] [DEBUG] CMySQLResult::CMySQLResult() - constructor called
[21:47:06] [DEBUG] CMySQLQuery::Execute[RetournerID] - starting query execution
[21:47:06] [DEBUG] Calling callback "ReturnID"..
[21:47:06] [DEBUG] cache_get_row_count - connection: 1
[21:47:06] [DEBUG] cache_get_row_int - row: 0, field_idx: 0, connection: 1
[21:47:06] [DEBUG] CMySQLResult::GetRowData - row: '0', field: '0', data: "1"
[21:47:06] [DEBUG] CMySQLResult::~CMySQLResult() - deconstructor called
[21:47:06] [DEBUG] Calling callback "RetournerID"..
[21:47:06] [DEBUG] CMySQLQuery::Execute[RetournerID] - query was successfully executed within 14.790 milliseconds
[21:47:06] [DEBUG] CMySQLResult::CMySQLResult() - constructor called
[21:47:06] [DEBUG] cache_get_row_int - row: 0, field_idx: 0, connection: 1
[21:47:06] [DEBUG] CMySQLResult::GetRowData - row: '0', field: '0', data: "0"
[21:47:06] [DEBUG] CMySQLResult::~CMySQLResult() - deconstructor called
[21:47:06] [DEBUG] Calling callback "RetournerID"..
[21:47:06] [DEBUG] cache_get_row_count - connection: 1
[21:47:06] [DEBUG] cache_get_row_int - row: 0, field_idx: 0, connection: 1
[21:47:06] [DEBUG] CMySQLResult::GetRowData - row: '0', field: '0', data: "0"
[21:47:06] [DEBUG] CMySQLResult::~CMySQLResult() - deconstructor called
CheckAccountBan(sqlpid) // Permet de check un compte ban (Pour un unban, une connexion etc). { new query[128]; mysql_format(mysql, query, sizeof(query), "SELECT Locked FROM srp_players_stats WHERE id = %d LIMIT 1", sqlpid); new Cache:result = mysql_query(mysql, query); new return_val = cache_num_rows() ? cache_get_row_int(0, 0) : 0; cache_delete(result, mysql); return return_val; }
Код:
CheckAccountBan(sqlpid) // Permet de check un compte ban (Pour un unban, une connexion etc). { new query[128]; mysql_format(mysql, query, sizeof(query), "SELECT Locked FROM srp_players_stats WHERE id = %d LIMIT 1", sqlpid); new Cache:result = mysql_query(mysql, query); new return_val = cache_num_rows() ? cache_get_row_int(0, 0) : 0; cache_delete(result, mysql); return return_val; } |
---------- Loaded log file: "server_log.txt". ---------- SA-MP Dedicated Server ---------------------- v0.3z-R2, ©2005-2014 SA-MP Team [23:49:02] [23:49:02] Server Plugins [23:49:02] -------------- [23:49:02] Loading plugin: streamer [23:49:02] Loaded. [23:49:02] Loading plugin: sscanf [23:49:02] [23:49:02] =============================== [23:49:02] sscanf plugin loaded. [23:49:02] Version: 2.8.1 [23:49:02] © 2012 Alex "******" Cole [23:49:02] =============================== [23:49:02] Loaded. [23:49:02] Loading plugin: mysql [23:49:02] Failed. [23:49:02] Loading plugin: MapAndreas [23:49:02] Loaded. [23:49:02] Loading plugin: FCNPC [23:49:02] [23:49:02] ------------------------------------------------- [23:49:02] FCNPC - Fully Controllable NPC v0.1 B12 [23:49:02] [23:49:02] - Author: OrMisicL [23:49:02] - Build: Jun 2 2014 at 19:05:32 [23:49:02] ------------------------------------------------- [23:49:02] [23:49:02] Loading ... [23:49:02] SAMP Server version 0.3z R2-2 (Windows) detected. Initializing ... [23:49:02] Loaded. [23:49:02] Loading plugin: iTD [23:49:02] * iTD Plugin loaded. (Support for textdraw editor mouse/keyboard) [23:49:02] Loaded. [23:49:02] Loading plugin: Whirlpool [23:49:02] [23:49:02] ================== [23:49:02] [23:49:02] Whirlpool loaded [23:49:02] [23:49:02] ================== [23:49:02] [23:49:02] Loaded. [23:49:02] Loading plugin: nativechecker [23:49:02] Loaded. [23:49:02] Loading plugin: crashdetect [23:49:02] CrashDetect v4.13 is OK. [23:49:02] Loaded. [23:49:02] Loaded 8 plugins. [23:49:02] [23:49:02] Filterscripts [23:49:02] --------------- [23:49:02] Loading filterscript 'iTD.amx'... [23:49:02] iPLEOMAX's TextDraw Editor loaded successfully! Version: 1.16 Stable (13/10/2012) [23:49:02] Loading filterscript 'TD.amx'... [23:49:02] -------------------------------------- [23:49:02] Text Draw Editor 1.0RC2 by Zamaroht for SA-MP 0.3 Loaded. [23:49:02] -------------------------------------- [23:49:02] Loaded 2 filterscripts. [23:49:02] Error: Function not registered: 'mysql_log' [23:49:02] Error: Function not registered: 'mysql_connect' [23:49:02] Error: Function not registered: 'mysql_errno' [23:49:02] Error: Function not registered: 'mysql_format' [23:49:02] Error: Function not registered: 'mysql_tquery' [23:49:02] Error: Function not registered: 'mysql_close' [23:49:02] Error: Function not registered: 'mysql_query' [23:49:02] Error: Function not registered: 'cache_get_row_count' [23:49:02] Error: Function not registered: 'cache_get_field_content' [23:49:02] Error: Function not registered: 'cache_delete' [23:49:02] Error: Function not registered: 'cache_get_data' [23:49:02] Error: Function not registered: 'cache_get_field_content_int' [23:49:02] Error: Function not registered: 'cache_insert_id' [23:49:02] Error: Function not registered: 'cache_get_field_content_float' [23:49:02] [debug] Run time error 19: "File or function is not found" [23:49:02] [debug] mysql_log [23:49:02] [debug] mysql_connect [23:49:02] [debug] mysql_errno [23:49:02] [debug] mysql_format [23:49:02] [debug] mysql_tquery [23:49:02] [debug] mysql_close [23:49:02] [debug] mysql_query [23:49:02] [debug] cache_get_row_count [23:49:02] [debug] cache_get_field_content [23:49:02] [debug] cache_delete [23:49:02] [debug] cache_get_data [23:49:02] [debug] cache_get_field_content_int [23:49:02] [debug] cache_insert_id [23:49:02] [debug] cache_get_field_content_float [23:49:02] [debug] Run time error 19: "File or function is not found" [23:49:02] [debug] mysql_log [23:49:02] [debug] mysql_connect [23:49:02] [debug] mysql_errno [23:49:02] [debug] mysql_format [23:49:02] [debug] mysql_tquery [23:49:02] [debug] mysql_close [23:49:02] [debug] mysql_query [23:49:02] [debug] cache_get_row_count [23:49:02] [debug] cache_get_field_content [23:49:02] [debug] cache_delete [23:49:02] [debug] cache_get_data [23:49:02] [debug] cache_get_field_content_int [23:49:02] [debug] cache_insert_id [23:49:02] [debug] cache_get_field_content_float [23:49:02] Script[gamemodes/thescriptname.amx]: Run time error 19: "File or function is not found" [23:49:02] Number of vehicle models: 0 |