21.02.2019, 23:16
PHP Code:
format(query, sizeof(query), "UPDATE `garages` SET `garageOwnerID` = '%d', `garageOwned` = '%d', `garagePrice` = '%d', `garagePlayerSellPrice` = '%d', `garageSize` = '%d' WHERE `garageID` = '%d'",
GarageInfo[gid][garageOwnerID],
GarageInfo[gid][garageOwned],
GarageInfo[gid][garagePrice],
GarageInfo[gid][garagePlayerSellPrice],
GarageInfo[gid][garageSize]);
mysql_query(g_SQL, query);
change it to this..
PHP Code:
format(query, sizeof(query), "UPDATE `garages` SET `garageOwnerID` = '%d', `garageOwned` = '%d', `garagePrice` = '%d', `garagePlayerSellPrice` = '%d', `garageSize` = '%d' WHERE `garageID` = '%d'",
GarageInfo[gid][garageOwnerID],
GarageInfo[gid][garageOwned],
GarageInfo[gid][garagePrice],
GarageInfo[gid][garagePlayerSellPrice],
GarageInfo[gid][garageSize],
GarageInfo[gid][garageID]);
mysql_query(g_SQL, query);