04.02.2018, 18:55
Hello all guys, how are you going? and yeah, the problem which I don't really like, but it finally fallen on me
I tried solving this by myself, but without result..
mysql_log :
server_log :
Script :
Can anyone give me a bit of help please
I tried solving this by myself, but without result..
mysql_log :
PHP код:
[19:32:29 02/04/18] [ERROR] CMySQLQuery::Execute[] - (error #1064) Erreur de syntaxe prиs de 'Rename = 0 WHERE ID = 0' а la ligne 1 (Query: "UPDATE srv_users SET Niveau = 1, Respect = 5, ServiceMinute = 0, MinExp = 1, AdminLevel = 10012, Banexp = 0, Banm = 0, Bany = 0, Banhour = 0, Banmin = 0, RaisonBanni = '', VIP = 0, Rename = 0 WHERE ID = 0")
PHP код:
[19:31:38] UPDATE srv_users SET Niveau = 1, Respect = 1, ServiceMinute = 0, MinExp = 0, AdminLevel = 10012, Banexp = 0, Banm = 0, Bany = 0, Banhour = 0, Banmin = 0, RaisonBanni = '', VIP = 0, Rename = 0 WHERE ID = 0
Код:
Users_Save(userid) { static query[5054]; format(query,sizeof(query), "UPDATE srv_users SET Niveau = %d, Respect = %d, ServiceMinute = %d, MinExp = %d, AdminLevel = %d, Banexp = %d, Banm = %d, Bany = %d, Banhour = %d, Banmin = %d, RaisonBanni = '%s', VIP = %d, Rename = %d WHERE ID = %d", PlayerInfo[userid][pNiveau], PlayerInfo[userid][pRespect], PlayerInfo[userid][pServiceMinute], PlayerInfo[userid][pMinExp], PlayerInfo[userid][pAdminLevel], PlayerInfo[userid][pBanexp], PlayerInfo[userid][pBanm], PlayerInfo[userid][pBany], PlayerInfo[userid][pBanhour], PlayerInfo[userid][pBanmin], PlayerInfo[userid][pRaisonBanni], PlayerInfo[userid][pVIP], PlayerInfo[userid][pRename], PlayerInfo[userid][pID]); mysql_tquery(g_iHandle, query, "", ""); }