07.07.2013, 20:53
Ok,ID-s are working now,thanks for that but the query update stuff is not working and i have no clue why,i tried increasing query size to 512 but it does not help.
Код:
format(Query, sizeof(Query), "UPDATE HOUSES SET NAME = 'Grad', FOR_SELL = 1, SELL_PRICE = %d, RENTPRICE = 1000, HOUSE_LEVEL = %d, X = %f, Y = %f, Z = %f, VIRTUALWORLD = &d, STATUS = 0 WHERE ID = %d", sellprice, HouseLvl, X, Y, Z, ID, ID); db_query(Database, Query);