include house name in realestate sale
This commit is contained in:
parent
28050c0aa6
commit
4c93b2e888
@ -246,7 +246,7 @@ thread HouseListing_OnBuyHome( playerid, house_listing_id )
|
|||||||
if ( 0 <= sellerid < MAX_PLAYERS && Iter_Contains( Player, sellerid ) ) {
|
if ( 0 <= sellerid < MAX_PLAYERS && Iter_Contains( Player, sellerid ) ) {
|
||||||
p_OwnedHouses[ sellerid ] --;
|
p_OwnedHouses[ sellerid ] --;
|
||||||
GivePlayerIrresistibleCoins( sellerid, ask_price );
|
GivePlayerIrresistibleCoins( sellerid, ask_price );
|
||||||
SendServerMessage( sellerid, "You have successfully sold your house for "COL_GOLD"%s IC"COL_WHITE" to %s(%d)!", number_format( ask_price, .decimals = 2 ), ReturnPlayerName( playerid ), playerid );
|
SendServerMessage( sellerid, "You have successfully sold your home (%s) for "COL_GOLD"%s IC"COL_WHITE" to %s(%d)!", g_houseData[ houseid ] [ E_HOUSE_NAME ], number_format( ask_price, .decimals = 2 ), ReturnPlayerName( playerid ), playerid );
|
||||||
} else {
|
} else {
|
||||||
mysql_single_query( sprintf( "UPDATE `USERS` SET `COINS` = `COINS` + %f WHERE `ID` = %d", ask_price, owner_account_id ) );
|
mysql_single_query( sprintf( "UPDATE `USERS` SET `COINS` = `COINS` + %f WHERE `ID` = %d", ask_price, owner_account_id ) );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user