Wtf is wrong
#5

PHP Code:
format(querysizeof(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_SQLquery); 
Here is your problem pal, you forgot to put the enum of the garage id..

change it to this..

PHP Code:
format(querysizeof(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_SQLquery); 
That would do.
Reply


Messages In This Thread
Wtf is wrong - by SymonClash - 21.02.2019, 21:55
Re: Wtf is wrong - by Kane - 21.02.2019, 22:08
Re: Wtf is wrong - by JasonRiggs - 21.02.2019, 22:08
Re: Wtf is wrong - by SymonClash - 21.02.2019, 23:12
Re: Wtf is wrong - by JasonRiggs - 21.02.2019, 23:16
Re: Wtf is wrong - by SymonClash - 22.02.2019, 09:07

Forum Jump:


Users browsing this thread: 1 Guest(s)