Raised This Month: $150 Target: $400
 37% 

Showing results 1 to 4 of 4
Search took 0.01 seconds.
Search: Posts Made By: Toxa
Forum: Coding MM:S Plugins & SM Extensions 01-07-2024, 02:56
Replies: 7
Views: 4,501
Posted By Toxa
Re: CS2 Metamod Plugin std::stringstream

Same. After ss << 123 stream state is bad.
Forum: Coding MM:S Plugins & SM Extensions 01-06-2024, 10:42
Replies: 7
Views: 4,501
Posted By Toxa
Re: CS2 Metamod Plugin std::stringstream

Thanks, I know about the formatting functions. But stringstream is used inside some libraries that I want to use. And they break when loading from mm.

I will try to investigate more
Forum: Coding MM:S Plugins & SM Extensions 01-06-2024, 09:19
Replies: 7
Views: 4,501
Posted By Toxa
Re: CS2 Metamod Plugin std::stringstream

Not works as well.

std::stringstream ss;
int a = 777;
ss << a;
//ss.bad() == true here, ss.str() is empty

Im using s1_stub_mm example from latest mm sources and latest hl2sdk-cs2. This code...
Forum: Coding MM:S Plugins & SM Extensions 01-06-2024, 08:42
Replies: 7
Views: 4,501
Posted By Toxa
CS2 Metamod Plugin std::stringstream

Hi there!

Can someone please tell me why is stringstream not working with int's inside the metamod plugin?
E.g.:

//this works
std::stringstream ss;
ss << "123";
//ss.bad() == false here
Showing results 1 to 4 of 4

 
Forum Jump

All times are GMT -4. The time now is 11:13.


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