21.05.2014, 10:41
(
Последний раз редактировалось Vaishnav; 21.05.2014 в 11:21.
)
sorry for the inconvenience but I need help a bit
my problem is that when player left the server it doesn't save the player stats and I am using MySQL and threading the queries
and I am using blueg's r33 plugin.
the code:
MySQL_log :
pls help
my problem is that when player left the server it doesn't save the player stats and I am using MySQL and threading the queries
and I am using blueg's r33 plugin.
the code:
Код:
public OnAccountLoad(playerid) { PlayerInfo[playerid][Score] = cache_get_field_content_int(0, "Score"); PlayerInfo[playerid][Cash] = cache_get_field_content_int(0, "Cash"); PlayerInfo[playerid][Level] = cache_get_field_content_int(0, "Level"); PlayerInfo[playerid][Kills] = cache_get_field_content_int(0, "Kills"); PlayerInfo[playerid][Deaths] = cache_get_field_content_int(0, "Deaths"); PlayerInfo[playerid][pMute] = cache_get_field_content_int(0, "pMute"); PlayerInfo[playerid][Warns] = cache_get_field_content_int(0, "Warns"); GivePlayerMoney(playerid, PlayerInfo[playerid][Cash]); SetPlayerScore(playerid, PlayerInfo[playerid][Score]); JustLogged[playerid] = 1; Logged[playerid] = 1; SendClientMessage(playerid, COLOR_RED, "{FF0000}[UF] {BDBDBD}» {fde2c3}You have been successfully {00FF00}Logged-In!"); return 1; }
Код:
[16:25:25] [DEBUG] mysql_format - connection: 1, len: 300, format: "UPDATE `Accounts` SET Score=%d, Cash=%d, Level=%d, Kills=%d, Deaths=%d, muted=%d, Warns=%d WHERE Name='%s'" [16:25:25] [DEBUG] mysql_tquery - connection: 1, query: "UPDATE `Accounts` SET Score=2, Cash=49540, Level=0, Kills=0, Dea", callback: "(null)", format: "(null)" [16:25:25] [DEBUG] CMySQLQuery::CMySQLQuery() - constructor called [16:25:25] [DEBUG] mysql_tquery - scheduling query "UPDATE `Accounts` SET Score=2, Cash=49540, Level=0, Kills=0, Deaths=0, muted=0, Warns=0 WHERE Name='sptzodric'".. [16:25:25] [DEBUG] CMySQLQuery::Execute[()] - starting query execution [16:25:25] [DEBUG] CMySQLQuery::Execute[()] - query was successful [16:25:25] [DEBUG] CMySQLQuery::Execute[()] - no callback specified, skipping result saving [16:25:25] [DEBUG] CMySQLQuery::Execute[()] - data being passed to ProcessCallbacks() [16:25:25] [DEBUG] CMySQLQuery::~CMySQLQuery() - deconstructor called