Guten Tag,
habe in meiner MySQL.log folgendes Problem gefunden:
[18:59:13] [ERROR] CMySQLQuery::Execute[()] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') ENGINE=InnoDB DEFAULT CHARSET=latin1' at line 1
Es bezieht sich hierrauf:
stock CreateFraktionVehicleTable()
{
new query[512];
format(query, sizeof(query), "CREATE TABLE IF NOT EXISTS `FraktionVehicles` (");
format(query, sizeof(query), "%s`id` int(11) NOT NULL PRIMARY KEY,", query);
format(query, sizeof(query), "%s `ModelID` int(11) NOT NULL DEFAULT '0',", query);
format(query, sizeof(query), "%s `PosX` float NOT NULL DEFAULT '0',", query);
format(query, sizeof(query), "%s `PosY` float NOT NULL DEFAULT '0',", query);
format(query, sizeof(query), "%s `PosZ` float NOT NULL DEFAULT '0',", query);
format(query, sizeof(query), "%s `PosA` float NOT NULL DEFAULT '0',", query);
format(query, sizeof(query), "%s `Color1` int(11) NOT NULL DEFAULT '0',", query);
format(query, sizeof(query), "%s `Color2` int(11) NOT NULL DEFAULT '0',", query);
format(query, sizeof(query), "%s) ENGINE=InnoDB DEFAULT CHARSET=latin1;", query);
mysql_function_query(dbhandle, query, false, "", "");
return 1;
}