09.11.2016, 02:38
(
Последний раз редактировалось StackedPizza; 13.11.2018 в 19:11.
)
~removed.~
new query[2500], total, tick = GetTickCount(); total = (tick - Player[playerid][playerLogged]) / 1000; // Convert into seconds format(query, sizeof(query), "UPDATE `txp` SET"); format(query, sizeof(query), "%s where `id` = '%d'", query, Player[playerid][pID]); format(query, sizeof(query), "%s `score` = '%d',", query, Player[playerid][playerScore]); format(query, sizeof(query), "%s `kill` = '%d',", query, Player[playerid][playerKills]); format(query, sizeof(query), "%s `death` = '%d',", query, Player[playerid][playerDeaths]); format(query, sizeof(query), "%s `money` = '%d',", query, Player[playerid][playerMoney]); format(query, sizeof(query), "%s `lastlogged` = now(),", query); format(query, sizeof(query), "%s `loggedtime` = `loggedtime` + %d,", query, total); format(query, sizeof(query), "%s `skin` = '%d',", query, Player[playerid][playerSkin]); format(query, sizeof(query), "%s `level` = '%d',", query, Player[playerid][playerLevel]); format(query, sizeof(query), "%s `spawn` = '%d',", query, Player[playerid][houseSpawn]); format(query, sizeof(query), "%s `token` = '%d',", query, Player[playerid][playerToken]); format(query, sizeof(query), "%s `icecream` = '%d',", query, Player[playerid][icecreams]); format(query, sizeof(query), "%s `cookies` = '%d',", query, Player[playerid][cookies]); format(query, sizeof(query), "%s `color` = '%d'", query, Player[playerid][pc]); printf("%d", total); Player[playerid][playerLogged] = GetTickCount(); mysql_format(koneksi, query, sizeof(query), "%s", query); mysql_query(koneksi, query, false); return 1;