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.: Code:
//this works Code:
//this not works |
Re: CS2 Metamod Plugin std::stringstream
There are many c++ examples, what use also string and stringstream.
Also, try this: Create variable int with value. Add that in your stringstream ss << |
Re: CS2 Metamod Plugin std::stringstream
Quote:
Code:
std::stringstream ss; |
Re: CS2 Metamod Plugin std::stringstream
I would start looking <string> and format.
https://en.cppreference.com/w/cpp/utility/format/format Forget stringstream :S Edit Sprintf https://forums.alliedmods.net/showpo...65&postcount=5 |
Re: CS2 Metamod Plugin std::stringstream
Quote:
I will try to investigate more |
Re: CS2 Metamod Plugin std::stringstream
What if you do:
ss << 123 << " "; |
Re: CS2 Metamod Plugin std::stringstream
Quote:
|
Re: CS2 Metamod Plugin std::stringstream
If this has something to do iostream badbit...
What if you use: ss.clear(); ...after you declare stringstream variable? But something is off, can't say what. Also, what require stringstream ? If above thing not help. Try use string and format. Then finally, add that string into stringstream |
All times are GMT -4. The time now is 07:39. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.