View Single Post
fmfs10
Senior Member
Join Date: Mar 2009
Location: Brasil
Old 01-09-2012 , 12:00   Re: ZP 5.0 Betas/Updates
#743

Hey! I've noticed an EXTRA CHECK on zp50_item_weapons.sma
PHP Code:
// plugin_precache...
if (ArraySize(g_weapon_names) == 0)
{
        for (
index 0index sizeof weapon_namesindex++)
            
ArrayPushString(g_weapon_namesweapon_names[index])
        
        
// Save to external file
        
amx_save_setting_string_arr(ZP_SETTINGS_FILE"Extra Items: Weapons and their costs""NAMES"g_weapon_names)
}
if (
ArraySize(g_weapon_items) == 0)
{
        for (
index 0index sizeof weapon_itemsindex++)
            
ArrayPushString(g_weapon_itemsweapon_items[index])
        
        
// Save to external file
        
amx_save_setting_string_arr(ZP_SETTINGS_FILE"Extra Items: Weapons and their costs""ITEMS"g_weapon_items)


Last edited by fmfs10; 01-09-2012 at 12:01.
fmfs10 is offline