03.09.2015, 15:09
I recently had some problems with my mysql database , sometimes mysql data of a player goes to another player and so on. It's like a mixture between datas.
How i load player accounts:
Please remember that the problem is happening just sometimes.
What should i check ? What problem could be? Thanks for your support. I will rep you soon.
How i load player accounts:
pawn Код:
mysql_format(mysql, query, sizeof(query), "SELECT * FROM `accounts` WHERE `playerName` = '%s' LIMIT 1", szPlayerName);
mysql_tquery(mysql, query, "OnAccountLoad", "i", playerid);
pawn Код:
forward OnAccountLoad(playerid);
public OnAccountLoad(playerid)
{
playerVariables[playerid][pLanguage] = cache_get_field_content_int(0, "playerLanguage");
playerVariables[playerid][pSex] = cache_get_field_content_int(0, "playerSex");
and so on...
}
What should i check ? What problem could be? Thanks for your support. I will rep you soon.