format(Query, sizeof(Query), "INSERT INTO `accounts` (username, password, level, cash, pos_x, pos_y, pos_z) VALUES('%s', '%s', '%d', '%f', '%f', '%f')", EscapedName, EscapedPassword, 1, 2500, 1742.9363, -1861.8215, 13.5770);
format(Query, sizeof(Query), "INSERT INTO `accounts` (username, password, level, cash, pos_x, pos_y, pos_z) VALUES('%s', '%s', 1, 2500, '1742.9363', '-1861.8215', '13.5770')", EscapedName, EscapedPassword);
[02:55:15] MySQL Error (0): Could not execute 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 ''17' at line 1. [02:55:15] MySQL Error (0): Could not execute query. Unknown column 'biskey' in 'field list'. [02:55:15] MySQL Error (0): Could not execute 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 '0' WHERE `SQLid` = '0'' at line 1. [02:55:16] MySQL Error (0): Could not execute query. Unknown column 'biskey' in 'field list'. [02:55:16] MySQL Error (0): Could not execute 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 '0' WHERE `SQLid` = '0'' at line 1. [02:55:18] MySQL Error (0): Could not execute query. Unknown column 'biskey' in 'field list'. [02:55:18] MySQL Error (0): Could not execute 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 '0' WHERE `SQLid` = '0'' at line 1.
Hmm still didn't work.. Check this...
Код:
[02:55:15] MySQL Error (0): Could not execute 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 ''17' at line 1. [02:55:15] MySQL Error (0): Could not execute query. Unknown column 'biskey' in 'field list'. [02:55:15] MySQL Error (0): Could not execute 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 '0' WHERE `SQLid` = '0'' at line 1. [02:55:16] MySQL Error (0): Could not execute query. Unknown column 'biskey' in 'field list'. [02:55:16] MySQL Error (0): Could not execute 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 '0' WHERE `SQLid` = '0'' at line 1. [02:55:18] MySQL Error (0): Could not execute query. Unknown column 'biskey' in 'field list'. [02:55:18] MySQL Error (0): Could not execute 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 '0' WHERE `SQLid` = '0'' at line 1. |
[02:58:42] MySQL Error (0): Could not execute 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 ''17' at line 1. [02:58:42] MySQL Error (0): Could not execute 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 '0' WHERE `SQLid` = '0'' at line 1. [02:58:43] MySQL Error (0): Could not execute 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 '0' WHERE `SQLid` = '0'' at line 1. [02:58:47] MySQL Error (0): Could not execute 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 '0' WHERE `SQLid` = '0'' at line 1.
format(Query, sizeof(Query), "SELECT `SQLid` FROM `accounts` WHERE `username` = '%s'", EscapedName);