stock ErstelleBusiness(Float:X,Float:Y,Float:Z,preis,level,besitzer[24],name[128],kasse,eintritt)
{
new Query[128];
format(Query,sizeof Query,"INSERT INTO `Business` (`Besitzer`,`BizName`,`Preis`,`Level`,`Kasse`,`Eintritt`,`PosX`,`PosY`,`PosZ`) VALUES ('%s','%s','%i','%i','%i','%i','%i','%i','%i')",besitzer,name,preis,level,kasse,eintritt,X,Y,Z);
mysql_query(Query);
mysql_free_result();
return printf("Biz erstellt");
}
Er sagt immer :
Code
[Mon Dec 26 01:34:44 2011] Function: mysql_query executed: "INSERT INTO `Business` (`Besitzer`,`BizName`,`Preis`,`Level`,`Kasse`,`Eintritt`,`PosX`,`PosY`,`PosZ`) VALUES ('keiner1','test1'" with result: "1".
[Mon Dec 26 01:34:44 2011] Error (0): Failed to exeute 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 '' at line 1.
[Mon Dec 26 01:34:44 2011] Function: mysql_free_result executed.