Raised This Month: $ Target: $400
 0% 

Solved cs_get_weapon_ammo returning "Non-player entity"


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Shadows Adi
AlliedModders Donor
Join Date: Aug 2019
Location: Romania
Old 08-07-2021 , 03:26   Re: cs_get_weapon_ammo returning "Non-player entity"
Reply With Quote #4

Thank you!
I will try what Hamlet said.

And about this
Quote:
Originally Posted by HamletEagle View Post
Also, what is "iPlayer"? In the forward header you have "id".
Changed the code

Solved passing the Weapon Entity index retrieved from player's pdata:
PHP Code:
    static wID 
    wID 
get_pdata_cbase(iPlayer373XO_PLAYER)

    
iClip cs_get_weapon_ammo(wID); 
__________________


Accepting Paid Requests, contact PM.

MVP Of The Round View project on GITHUB / AlliedModders
CSGO REMAKE ~ CSGO MOD [STABLE + SOURCE CODE]

Last edited by Shadows Adi; 08-07-2021 at 03:38. Reason: Solved
Shadows Adi 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 02:32.


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