18.02.2017, 23:19
I checked again some scripts from that timer and I saw that i'm using a lot of queries in that timer, like:
It is a big problem because there are executed a lot of queries for all the connected players every second, isn't it?
But it is executed just in case. Like :
so, i guess that isn't the real problem from that lag.
Код HTML:
new str[256]; format(str,128,"UPDATE `players` SET `Warns`='0' WHERE `playerID`='%d'",PlayerData[x][pSQLID]); mysql_tquery(handle,str);
But it is executed just in case. Like :
Код HTML:
if(PlayerData[playerid][pWarns] > 3) { ban query }