From a0016cd0399700db4eba4130430243e75dde00e8 Mon Sep 17 00:00:00 2001 From: Lorenc Pekaj Date: Mon, 22 Oct 2018 17:29:38 +1100 Subject: [PATCH] fix biz prod bug... http://forum.sfcnr.com/showthread.php?60820-b-production --- .../irresistible/cnr/features/business/business.pwn | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gamemodes/irresistible/cnr/features/business/business.pwn b/gamemodes/irresistible/cnr/features/business/business.pwn index c426c5b..8dcf971 100644 --- a/gamemodes/irresistible/cnr/features/business/business.pwn +++ b/gamemodes/irresistible/cnr/features/business/business.pwn @@ -310,12 +310,12 @@ CMD:business( playerid, params[ ] ) new bool: has = false; - szBigString = ""COL_WHITE"Name\t"COL_WHITE"Production Time\t"COL_WHITE"Product\n"; + szLargeString = ""COL_WHITE"Name\t"COL_WHITE"Production Time\t"COL_WHITE"Product\n"; - foreach ( new businessid : business ) if ( g_businessData[ businessid ] [ E_OWNER_ID ] == p_AccountID[ playerid ] ) + foreach ( new businessid : business ) if ( IsBusinessAssociate( playerid, businessid ) ) { - format( szBigString, sizeof( szBigString ), "%s%s\t%s\t"COL_GOLD"%s\n", - szBigString, g_businessData[ businessid ] [ E_NAME ], + format( szLargeString, sizeof( szLargeString ), "%s%s\t%s\t"COL_GOLD"%s\n", + szLargeString, g_businessData[ businessid ] [ E_NAME ], g_businessData[ businessid ] [ E_PROD_TIMESTAMP ] ? ( secondstotime( g_businessData[ businessid ] [ E_PROD_TIMESTAMP ], ", ", 5 ) ) : ( ""COL_GREEN"Production Finished" ), g_businessData[ businessid ] [ E_PRODUCT ] == 0 ? ( ""COL_RED"No Product" ) : ( cash_format( g_businessData[ businessid ] [ E_PRODUCT ] * GetProductPrice( businessid ) ) ) ), has = true; @@ -324,7 +324,7 @@ CMD:business( playerid, params[ ] ) if ( ! has ) { return SendError( playerid, "You cannot use this command since you don't own any businesses." ); } else { - return ShowPlayerDialog( playerid, DIALOG_NULL, DIALOG_STYLE_TABLIST_HEADERS, ""COL_WHITE"Business Production", szBigString, "Close", "" ); + return ShowPlayerDialog( playerid, DIALOG_NULL, DIALOG_STYLE_TABLIST_HEADERS, ""COL_WHITE"Business Production", szLargeString, "Close", "" ); } } else if ( strmatch( params, "spawn" ))