18.03.2017, 21:18
Quote:
UpdatePlayerData(playerid) { if (Player[playerid][IsLoggedIn] == false) return 0; new query[180]; mysql_format(g_SQL, query, sizeof query, "UPDATE `players` SET `Kills` = %d,`Deaths` = %d,`Score` = %d,`Money` = %d, `Level` = %d,`Cookies` = %d, `Warns` = %d WHERE `id` = %d LIMIT 1", Player[playerid][Kills], Player[playerid][Deaths], Player[playerid][Score], Player[playerid][Money], Player[playerid][Level], Player[playerid][Cookies], Player[playerid][Warns], Player[playerid][ID]); mysql_tquery(g_SQL, query); } |