Raised This Month: $ Target: $400
 0% 

Solved cs_get_weapon_burst Error


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 05-17-2016 , 06:07   Re: [HELP] cs_get_weapon_burst Error
Reply With Quote #6

Quote:
Originally Posted by hellmonja View Post
I thought "CSW" is the weapon index and "weapon_" is the weapon entity. Turns out I might be wrong all this time.
CSW_* constants are weapon indexes. What cs_get_weapon_burst() expects is a weapon entity index, just as Arkshine said. Just like players have their entity indexes from 1 to 32, all other entities (including weapons) have them, and that's what you need.

And that "weapon_*" is just a classname by which entities are recognized and linked to C++ classes.

Last edited by klippy; 05-17-2016 at 06:09.
klippy is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:42.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode