Толкин
Компетентный
PHP:
if(sscanf(inputtext, "p<,>dddd", ccar[0], ccar[1], ccar[2], ccar[3])) return SCM(playerid, -1, !"{"#cACCEPT"}Îøèáêà ïðè óêàçàíèè ñèíòàêñèñà òðàíñïîðòà!");
format(query, sizeof(query), "INSERT INTO `cars` (`mid`, `typez`, `prise`, `cordX`, `cordY`, `cordZ`, `angle`, `lock`) VALUES ('%d', '%d', '%d', '%f', '%f', '%f', '%f', '%d')", ccar[0], ccar[1], ccar[2], cords[0], cords[1], cords[2], cords[3], ccar[3]);
mysql_function_query(mysql_id, query, false, "", "");
PHP:
23:49:59] [ERROR] CMySQLQuery::Execute[] - (error #1064) 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 ''2' at line 1
