Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » It don't mean a thing, if you aint got that string! (C++ help needed)
Re: It don't mean a thing, if you aint got that string! [message #421105 is a reply to message #421101] Sun, 28 February 2010 08:23 Go to previous messageGo to previous message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma:
General (5 Stars)
if((strd.c_str())[0] == '&'){


Perhaps? (NB: I have not tried to compile that, but it *should* work in theory... the brackets around the strd.c_str() may or may not be required depending on the other of precedence.)

Basically you should get the underlying c_str and then get the first index of THAT array instead.


http://steamsignature.com/card/1/76561197975867233.png
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: XCC Mixer?
Next Topic: Waterfall problems
Goto Forum:
  


Current Time: Sat Dec 21 02:02:52 MST 2024

Total time taken to generate the page: 0.00634 seconds