10.12.2016, 10:37
This one doesn't work
This one does work
Why?
Код:
new year, m, d, string[20]; getdate(year, m, d); format(string, 20, "%02d/%02d/%04d", d, m, year); mysql_format(mysql, query, sizeof(query), "INSERT INTO `accounts` (`Name`, `Password`, `IP`, `PosX`, `PosY`, `PosZ`, 'RegDate') VALUES ('%e', '%e', '%e', %f, %f, %f, '%e')", playername, pw, ip ,x,y,z, string); mysql_tquery(mysql, query, "OnAccountRegister", "i", playerid);
Код:
mysql_format(mysql, query, sizeof(query), "INSERT INTO `accounts` (`Name`, `Password`, `IP`, `PosX`, `PosY`, `PosZ`) VALUES ('%e', '%e', '%e', %f, %f, %f, )", playername, pw, ip ,x,y,z); mysql_tquery(mysql, query, "OnAccountRegister", "i", playerid);