Адай Хопкинс
Умник
Сразу к делу
Вот сама ошибка
PHP:
[21:26:32] [plugins/mysql] error #1064 while executing query "INSERT INTO `accounts` (`name`, `password`, `email`, `admin`, `nationality`, `age`, `sex`, `skin`, `level`, `exp`, `time`, `house`, `money`) VALUES ('Chlen_Pesos5', 'drd281xm23', 'fffffffffff', '0', '7', '29', '1', '212', '0', '0', '0', '0, '500')": 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 '500')' at line 1
PHP:
static const fmt_str[] =
"\
INSERT INTO `accounts` (`name`, `password`, `email`, `admin`, `nationality`, `age`, `sex`, `skin`, `level`, `exp`, `time`, `house`, `money`) VALUES ('%s', '%s', '%s', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d, '%d')\
";
new string[sizeof(fmt_str)-26+MAX_PLAYER_NAME+30+30+1+2+1+3+1+10+1+3];
format(string, sizeof(string), fmt_str,
GN(playerid),
player[playerid][ppassword],
player[playerid][pemail],
0,
player[playerid][pnationality],
player[playerid][page],
player[playerid][psex],
player[playerid][pskin],
player[playerid][plevel],
0,
player[playerid][ptime],
0,
500);
mysql_tquery(mysql_id, string, "", "");
---------- Сообщение добавлено в 23:52 ---------- Предыдущее сообщение добавлено в 23:42 ----------
Решено, пропустил знак '
Знаю, я слепой
CLOSED
