Make own funiture's orders right

Unknown funitures make funiture's orders wrong
This commit is contained in:
Pichai Lertwachirakul 2020-12-29 22:57:05 +07:00 committed by GitHub
parent 5280148ac6
commit 95c4080b4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1126,9 +1126,9 @@ stock ShowOwnedFurnitureList( playerid, houseid )
new furniture_item = getFurnitureID( modelid ); new furniture_item = getFurnitureID( modelid );
if ( furniture_item != -1 ) { if ( furniture_item != -1 ) {
format( szLargeString, sizeof( szLargeString ), "%s%s\n", szLargeString, g_houseFurniture[ furniture_item ] [ E_NAME ] ); format( szLargeString, sizeof( szLargeString ), "%s%s\n", szLargeString, g_houseFurniture[ furniture_item ] [ E_NAME ] );
} else { } /*else {
strcat( szLargeString, "Unknown\n" ); strcat( szLargeString, "Unknown\n" );
} } */
} }
ShowPlayerDialog( playerid, DIALOG_FURNITURE_MAN_SEL, DIALOG_STYLE_TABLIST_HEADERS, "Furniture", szLargeString, "Select", "Back" ); ShowPlayerDialog( playerid, DIALOG_FURNITURE_MAN_SEL, DIALOG_STYLE_TABLIST_HEADERS, "Furniture", szLargeString, "Select", "Back" );
} }