08.12.2014, 09:48
Bom, estou com um problema muito estranho relacionado ao MySQL
Eu nгo to conseguindo salvar nada, mesmo setando.
Exemplo de quando eu seto, mas na hroa de salvar continua = 0
No caso nem a habt e o money estгo salvando
Eu nгo to conseguindo salvar nada, mesmo setando.
pawn Код:
mysql_format(g_dbConnection, gstring, sizeof gstring, "UPDATE `player_info` SET `money` = %d, `skin` = %d, `score` = %d, prof` = %d, habt` = %d, haba` = %d, habn` = %d WHERE `id` = %d",
gPlayerInfo[playerid][playerMoney],
gPlayerInfo[playerid][playerSkin],
gPlayerInfo[playerid][playerScore],
gPlayerInfo[playerid][playerProf],
gPlayerInfo[playerid][playerHabT],
gPlayerInfo[playerid][playerHabA],
gPlayerInfo[playerid][playerHabN],
gPlayerInfo[playerid][playerID]);
mysql_function_query(g_dbConnection, gstring, false, #, #);
pawn Код:
gPlayerInfo[playerid][playerHabT] = 1;
GivePlayerMoney(playerid, -1000);
mysql_format(g_dbConnection, gstring, sizeof gstring, "UPDATE `player_info` SET `habt` = 1, money` = %d WHERE `id` = %d", GetPlayerMoney(playerid), gPlayerInfo[playerid][playerID]);
mysql_function_query(g_dbConnection, gstring, false, #, #);
pawn Код:
g_dbConnection = mysql_connect(DB_HOST, DB_USER, DB_NAME, DB_PASS);