fix biz prod bug... http://forum.sfcnr.com/showthread.php?60820-b-production
This commit is contained in:
parent
9626ab84dd
commit
a0016cd039
@ -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" ))
|
||||
|
Loading…
Reference in New Issue
Block a user