View Single Post
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 04-27-2012 , 09:39   Re: About CommitSuicide
Reply With Quote #3

Quote:
Originally Posted by Powerlord View Post
event->GetString returns a const char* not a std::string.
There is an overload on the assignment operator to make it work.

Quote:
Originally Posted by Powerlord View Post
To my knowledge, the STL isn't supported in SRCDS at all.
While you can technically use it, the reason not to is if you need to support Linux systems other than the one it was compiled on, due to terrible ABI compatibility between versions, and Valve's own usage.

One major issue is that you're not checking if event is not NULL.
__________________
asherkin is offline