10.01.2019, 01:03
I'm getting this in mysql_log https://gyazo.com/a388e3ed8474ed8a1e8d18e704c31d29 every time when I run this query:
What is wrong??
Код:
format(str, sizeof(str), "SELECT SUM(`seconds`) FROM `user_times` WHERE `playerid` = %d;", PlayerInfo[playerid][pSQLID]); mysql_tquery(SQL, str, "checkSeconds", "i", playerid); forward checkseconds(playerid); public checkseconds(playerid) { if(!cache_num_rows()) return SCM(playerid, -1, "You have 0 seconds played!"); new seconds = cache_get_field_content_int(0, "SUM(`seconds`)"); va_SendClientMessage(playerid, -1, "You have %d seconds played!", seconds); return 1; }