---------- Loaded log file: "server_log.txt". ---------- SA-MP Dedicated Server ---------------------- v0.3z, ©2005-2014 SA-MP Team [00:52:57] filterscripts = "" (string) [00:52:57] [00:52:57] Server Plugins [00:52:57] -------------- [00:52:57] Loading plugin: mysql.dll [00:52:57] Failed. [00:52:57] Loaded 0 plugins. [00:52:57] [00:52:57] Filterscripts [00:52:57] --------------- [00:52:57] Loaded 0 filterscripts. [00:52:57] Script[gamemodes/base.amx]: Run time error 19: "File or function is not found" [00:52:57] Number of vehicle models: 0
|
This tut can help you https://sampforum.blast.hk/showthread.php?tid=485633
|
|
[20:36:06] [DEBUG] mysql_format - connection: 1, len: 2048, format: "UPDATE `accounts` SET `Level`=%d, `Gender`=%d, `Age`=%d, `Admin`=%d, `Skin`=%d, `posX`=%f, `posY`=%f, `posZ`=%f WHERE `ID`=%d" [20:36:06] [DEBUG] mysql_tquery - connection: 1, query: "UPDATE `accounts` SET `Level`=1, `Gender`=1, `Age`=24, `Admin`=0", callback: "OnQueryFinish", format: "ii" [20:36:06] [DEBUG] CMySQLQuery::Execute[OnQueryFinish] - starting query execution [20:36:06] [DEBUG] CMySQLResult::CMySQLResult() - constructor called [20:36:06] [DEBUG] Calling callback "OnQueryFinish".. [20:36:06] [DEBUG] CMySQLResult::~CMySQLResult() - deconstructor called |
public OnPlayerDisconnect(playerid, reason)
{
GetPlayerPos(playerid, PlayerInfo[playerid][pPos][0], PlayerInfo[playerid][pPos][1], PlayerInfo[playerid][pPos][2]);
mysql_format(Pipeline, szQuery, sizeof(szQuery), "UPDATE `accounts` SET `Level`=%d, `Gender`=%d, `Age`=%d, `Admin`=%d, `Skin`=%d, `posX`=%f, `posY`=%f, `posZ`=%f WHERE `ID`=%d",\
PlayerInfo[playerid][pLevel], PlayerInfo[playerid][pGender], PlayerInfo[playerid][pAge], PlayerInfo[playerid][pAdmin], PlayerInfo[playerid][pSkin], PlayerInfo[playerid][pPos][0], PlayerInfo[playerid][pPos][1], PlayerInfo[playerid][pPos][2], PlayerInfo[playerid][pID]);
mysql_function_query(Pipeline, szQuery, true, "OnQueryFinish", "ii", THREAD_NO_RESULT, playerid);
return 1;
}
SA-MP Dedicated Server ---------------------- v0.3.7-R2, ©2005-2015 SA-MP Team [09:12:42] filterscripts = "" (string) [09:12:42] [09:12:42] Server Plugins [09:12:42] -------------- [09:12:42] Loading plugin: mysql_static.so [09:12:42] >> plugin.mysql: R39-3 successfully loaded. [09:12:42] Loaded. [09:12:42] Loading plugin: sscanf.so [09:12:42] [09:12:42] =============================== [09:12:42] sscanf plugin loaded. [09:12:42] Version: 2.8.1 [09:12:42] © 2012 Alex "Y_Less" Cole [09:12:42] =============================== [09:12:42] Loaded. [09:12:42] Loaded 2 plugins. [09:12:43] [09:12:43] Filterscripts [09:12:43] --------------- [09:12:43] Loaded 0 filterscripts. [09:12:43] Script[gamemodes/new.amx]: Run time error 19: "File or function is not found" [09:12:43] Number of vehicle models: 0