28.02.2014, 20:19
I have this error in my console:
Also, I have found out that the wrong line should be this:
So, what is wrong with it? I verified for n times, still didn't get it. I am sure that this error is because I wasn't paying attention, but I can't figure out. Please help me.
P.S: This is located in OnPlayerDialogResponse, after Register Dialog. I have just aded some more data (from logged to loginsec) and now isn't working anymore.
Код:
[MySQL] Error (0): Failed to exeute query. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1.
pawn Код:
getdate(year, month, day);
gettime(hour, minute, second);
PlayerInfo[playerid][pLogged]=1;
GetPlayerName(playerid,pname,24);
GetPlayerIp(playerid,ip,sizeof(ip));
format(query, sizeof(query), "INSERT INTO users (name, password, money, bank, level, rank, faction, fwarn, fpunish, civilskin, ip, logged, regday, regmonth, regyear, reghour, regmin, regsec, loginday, loginmonth, loginyear, loginhour, loginmin, loginsec) VALUES('%s', '%s', 15000, 5000, 1, 0, 0, 0, 0, 24, '%s', %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d)", pname, escpass, ip, PlayerInfo[playerid][pLogged], day, month, year, hour, minute, second, day, month, year, hour, minute, second);
mysql_query(query);
P.S: This is located in OnPlayerDialogResponse, after Register Dialog. I have just aded some more data (from logged to loginsec) and now isn't working anymore.