Quote:
Originally Posted by Powerlord
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
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.
__________________