13.09.2018, 16:30
Hey, I was wondering why
Is not saving infos?
PHP код:
new dbquery[128];
mysql_tquery(Database, "SELECT * FROM `players`");
mysql_format(Database, dbquery, sizeof dbquery, "UPDATE `players` SET `KILLS`='%d',`DEATHS`='%d',`ADMIN`='%d',`IP`='%s' WHERE `ID` = '%d' LIMIT 1", P[id][Kills], P[id][Deaths], P[id][Admin], P[id][IP], P[id][ID]);
mysql_tquery(Database, DB_Query, "OnPlayerStatsSaved", "d", id);
if(cache_is_valid(P[id][playercache])){
cache_delete(P[id][playercache]);
P[id][playercache] = MYSQL_INVALID_CACHE;
}
printf("%s", dbquery);