Raised This Month: $51 Target: $400
 12% 

[CS:GO] Getting data from the netprop "m_szCrosshairCodes"


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
manicogaming
AlliedModders Donor
Join Date: Aug 2014
Old 10-01-2020 , 13:32   [CS:GO] Getting data from the netprop "m_szCrosshairCodes"
Reply With Quote #1

I don't know what I'm doing wrong here but when I dump the netprops it says that "m_szCrosshairCodes" is a string but when I try to get it through sourcemod it doesn't work.

PHP Code:
char szCrosshair[64];
    
GetEntPropString(GetPlayerResourceEntity(), Prop_Send"m_szCrosshairCodes"szCrosshairsizeof(szCrosshair), client);

PrintToServer("Crosshair Code: %s"szCrosshair); 
This is the error that happens:
Code:
L 10/01/2020 - 18:28:23: [SM] Exception reported: SendProp m_szCrosshairCodes is not a string (6 != 4)
L 10/01/2020 - 18:28:23: [SM] Blaming: bot_stuff.smx
L 10/01/2020 - 18:28:23: [SM] Call stack trace:
L 10/01/2020 - 18:28:23: [SM]   [0] GetEntPropString
L 10/01/2020 - 18:28:23: [SM]   [1] Line 6317, bot_stuff.sp::OnPlayerRunCmd
What exactly am I doing wrong here?
__________________
manicogaming 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 15:11.


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