Need help a bit
#1

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:
Код:
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;
 }
MySQL_log :

Код:
[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
pls help
Reply


Messages In This Thread
Need help a bit - by Vaishnav - 21.05.2014, 10:41
Re: Need help a bit - by Vaishnav - 21.05.2014, 11:53
Re: Need help a bit - by JM_Millers - 21.05.2014, 12:08
Re: Need help a bit - by Vaishnav - 21.05.2014, 12:15
Re: Need help a bit - by Vaishnav - 21.05.2014, 13:33
Re: Need help a bit - by ball - 21.05.2014, 14:05
Re: Need help a bit - by doreto - 21.05.2014, 14:18
Re: Need help a bit - by Vaishnav - 21.05.2014, 14:34

Forum Jump:


Users browsing this thread: 3 Guest(s)