format(Query,sizeof(Query),"INSERT INTO `houses` (`name`,`cost`,`czynsz`,`house_outX`,`house_outY`,`house_outZ`,`house_inX`,`house_inY`,`house_inZ`,`house_inInt`,`house_inVW`) VALUES ('%s',%d,%d,%f,%f,%f,%f,%f,%f,%d,%d)",nazwa,Cost,Czynsz,outX,outY,outZ,IntX,IntY,IntZ,interior,intVW);
mysql_query(Query);
That's because "s" specifier in sscanf needs a size specified in square brackets such "ddfffdds[65]".
You probably can find better methods than re-loading the houses every time a house is created/deleted though. |