10.04.2017, 20:11
This is what I tried right now but still it didn't save the data.
Help would be appreciated!
PHP код:
new query[150];
new name[24];
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
mysql_real_escape_string(name, name);
mysql_format(mysql, query, sizeof(query), "UPDATE 'accounts' `Admin` = '%d', `VIP` = '%d', `Money` = '%d', `Kills` = '%d', `Deaths` = '%d', `Score` = '%d' WHERE `Name` = '%s'",
Player[playerid][Admin],
Player[playerid][VIP],
Player[playerid][Money],
Player[playerid][Kills],
Player[playerid][Deaths],
Player[playerid][Score],
name);
mysql_query(mysql, query);