View Single Post
khanhtruong777
Junior Member
Join Date: Apr 2013
Location: Vietnam
Old 01-22-2014 , 11:34   Re: [NMRiH] Give Weapons v1.1.1 (21 Jan 2014)
Reply With Quote #11

Quote:
Originally Posted by Leonardo View Post
*updated without version bump.
I'm sorry, but it's not fixed. Do you think the problem is this? IMHO, there's no "name" or "name_short" attribute in the data file, so the item name got both the prefix and suffix.
Code:
                if( !( iFlags & FINDITEM_NO_ITEMNAME ) )
                {
                    KvGetString( hItemsData, "name", szItemName, iItemNameLen, "" );
                    if( !strlen( szItemName ) )
                        Format( szItemName, iItemNameLen, "#Weapon_%s", szItemClass );
                    
                    KvGetString( hItemsData, "name_short", szItemNameShort, iItemNameShortLen, "" );
                    if( !strlen( szItemNameShort ) )
                        Format( szItemNameShort, iItemNameShortLen, "%s_short", szItemName );
                }
__________________

khanhtruong777 is offline