OnWeapon_Precache error
Hi everyone.
I'm having the following error in the logs. Error: PHP Code:
PHP Code:
PHP Code:
|
Re: OnWeapon_Precache error
public plugin_precache()
{ new szWeaponName[32] for(new iWeaponId = 1; iWeaponId <= (CZW_P90); iWeaponId++) if(iWeaponId != 2) { get_weaponname(iWeaponId, szWeaponName, charsmax(szWeaponName)) if(szWeapon[0] == EOS) continue; g_hPrecacheHook[iWeaponId] = RegisterHam(Ham_Precache, szWeaponName, "OnWeapon_Precache") g_hPrecacheHook_Post[iWeaponId] = RegisterHam(Ham_Precache, szWeaponName, "OnWeapon_Precache_Post", true) } } |
Re: OnWeapon_Precache error
get_weaponname is not going to work in precache on first map. The solution is probably to hardcode a list of weapon classnames and use them.
|
Re: OnWeapon_Precache error
use a const with all weapon classname
|
Re: OnWeapon_Precache error
HamletEagle.
Sorry but I do not know how to get it to work properly. Can you help? |
Re: OnWeapon_Precache error
Quote:
PHP Code:
|
Re: OnWeapon_Precache error
Quote:
|
Re: OnWeapon_Precache error
This?
PHP Code:
|
Re: OnWeapon_Precache error
Quote:
here it is https://wiki.alliedmods.net/Cs_weapons_information |
Re: OnWeapon_Precache error
Is it already correct?
PHP Code:
|
All times are GMT -4. The time now is 03:40. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.