This commit is contained in:
Lorenc Pekaj 2018-10-22 17:29:38 +11:00
parent 9626ab84dd
commit a0016cd039

View File

@ -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" ))