Raised This Month: $ Target: $400
 0% 

CS2 Metamod Plugin std::stringstream


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Toxa
New Member
Join Date: Jan 2024
Old 01-06-2024 , 07:42   CS2 Metamod Plugin std::stringstream
Reply With Quote #1

Hi there!

Can someone please tell me why is stringstream not working with int's inside the metamod plugin?
E.g.:
Code:
//this works
std::stringstream ss;
ss << "123";
//ss.bad() == false here
Code:
//this not works
std::stringstream ss;
ss << 123;
//ss.bad() == true here
Seems like all streams (std::cout, std::clog, std::cerr) not working with any numbers (int/double). If cout, clog, cerr is objects and engine or metamod can replace e.g. rdbuf for them so why even stringstream not working?

Last edited by Toxa; 01-06-2024 at 08:00. Reason: Update info
Toxa 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 17:28.


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