updates business production label upon supply purchases

This commit is contained in:
Damen 2019-01-02 13:42:19 -05:00
parent f1993e9d8a
commit 7ce386e6f9

View File

@ -1227,6 +1227,7 @@ hook OnDialogResponse( playerid, dialogid, response, listitem, inputtext[ ] )
// commence
GivePlayerCash( playerid, -price );
g_businessData[ businessid ] [ E_SUPPLIES ] ++;
UpdateBusinessProductionLabel( businessid );
// alert and redirect
SendServerMessage( playerid, "You have bought business supplies for "COL_GOLD"%s"COL_WHITE". "COL_ORANGE"(%d/%d)", cash_format( price ), g_businessData[ businessid ] [ E_SUPPLIES ], g_businessInteriorData[ business_type ] [ E_MAX_SUPPLIES ] );