Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » C++ Question
Re: C++ Question [message #340000 is a reply to message #339988] Wed, 09 July 2008 15:21 Go to previous messageGo to previous message
HeavyX101- Left is currently offline  HeavyX101- Left
Messages: 633
Registered: April 2008
Location: WindowsJail=ZipFolder
Karma:
Colonel
dead6re wrote on Wed, 09 July 2008 17:29

"word" does not exist. There is a replacement called char which is an array. Or however you can look at the STD library for std::string.

int atoi( const char *str );
double atof( const char *str );
long atol( const char *str );


Most of the time you can cast between
int -> double/float

Don't go the other way though as you lose the decimal places.

Thanks for the fast reply, but i didnt find anything that could go in this(HERE) :
Quote:

HERE preset = atof(Text[1].c_str()); = finds the word from the message.


Does anyone know it. Reborn could of help if i didnt ***** but thats life. Sad


This account is no longer being active.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Steath effect skin
Next Topic: DUB Hummer
Goto Forum:
  


Current Time: Thu Oct 10 11:19:53 MST 2024

Total time taken to generate the page: 0.01129 seconds