Raised This Month: $32 Target: $400
 8% 

Extension Help [CS:S PlayerDeath]


Post New Thread Reply   
 
Thread Tools Display Modes
Ajaxx
Senior Member
Join Date: Oct 2009
Old 02-28-2014 , 23:53   Re: Extension Help [CS:S PlayerDeath]
Reply With Quote #11

The extension is loading now, but I can’t get it to manipulate a string reference. The code I have above doesn't seem to work, the bool returns but not the string. How do I declare a null string in SourceMod then pass it by reference to my extension and assign a value then use that value in my plugin?
Ajaxx is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 03-01-2014 , 10:13   Re: Extension Help [CS:S PlayerDeath]
Reply With Quote #12

You need to use strncopy (or similar), at the moment you're just changing the pointer. Don't forget to also include a parameter for the length of the buffer (so you don't overflow it).
__________________
asherkin is offline
Reply



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 07:42.


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