14.09.2012, 19:45
you forgot some quotes in it
NOTE: Mistakes are marked in bold
NOTE2: i guess you made a typo in the query in INSERT INTO (at Discription , it should be Description )
Code:
format(Query, sizeof(Query), "INSERT INTO `houses` (`hID`, `Owned`, `Owner`, `Discription`, `EntranceX`, `EntranceY`, `EntranceZ`, `ExitX`, `ExitY`, `ExitZ`, `Level`, `Value`, `Healthx`, `Armourx`, `Hel`, `Arm`,`Int`,`Lock`,`Rooms`,`Rent`,`Rentabil`,`Takings`) VALUES (%d, 0, 'The State', `%s`,%f,%f,%f,%f,%f,%f,%d,%d,0,0,0,0,%d,1,0,0,0,0)", hid,Description,EntX,EntY,EntZ,ExitX,ExitY,ExitZ,Level,Value,Int); mysql_query(Query);
NOTE2: i guess you made a typo in the query in INSERT INTO (at Discription , it should be Description )