Merged in biz-supply-fix (pull request #46)

Business Protection Label Fix
This commit is contained in:
Damen DeBerry 2019-01-03 01:37:41 +00:00 committed by Lorenc Pekaj
commit 654695e4fd

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 ] );