cs_get_weapon_burst Error
1 Attachment(s)
I'm wondering why I'm getting this error in my console:
PHP Code:
PHP Code:
I've attached the plugin itself in case you guys need to take a look at the whole thing... |
Re: [HELP] cs_get_weapon_burst Error
cs_get_weapon_burst expects you a weapon entity index not player.
|
Re: [HELP] cs_get_weapon_burst Error
Quote:
But okay, I'll test it again first. Might just be a slight case of the stupid on my part. Be updating you in a few... UPDATE: ====== No go replacing it with "CSW_VP70". I even tried putting "CSWID" but still the same error. I'll put the whole "Event_CurWeapon" code so you can see what I mean. PHP Code:
|
Re: [HELP] cs_get_weapon_burst Error
As said, the weapon entity index, not the weapon CSW id. http://www.amxmodx.org/api/cstrike/cs_get_weapon_burst
|
Re: [HELP] cs_get_weapon_burst Error
Quote:
I've been trying to find some examples of code using the cs_get_weapon_burst func since yesterday but to no avail. If it's not much to ask, can you give an example? I'll give you some bacon. Heck, I'll even throw in a crab for you... |
Re: [HELP] cs_get_weapon_burst Error
You have actually retrieved already the entity index, should be "Ent".
|
Re: [HELP] cs_get_weapon_burst Error
Quote:
Thank you for taking the time to help! And as promised: :bacon!::crab:... |
Re: [HELP] cs_get_weapon_burst Error
Quote:
And that "weapon_*" is just a classname by which entities are recognized and linked to C++ classes. :) |
Re: [HELP] cs_get_weapon_burst Error
Quote:
|
| All times are GMT -4. The time now is 18:43. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.