Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Is_mod Brenbot
Is_mod Brenbot [message #361868] Sun, 07 December 2008 14:20
Gen_Blacky is currently offline  Gen_Blacky
Messages: 3250
Registered: September 2006
Karma: 1
General (3 Stars)
Can I use brenbot mod list or make it so it uses brenbot


bool is_mod(const char *Name)
{
     fstream file("mods.txt", ios::in);
     string tmp;
     while(file >> tmp)
     { 
         if(strcmp(Name, tmp.c_str()) == 0)
          {
               return 1;
         }
     }
     return 0;
}


http://s18.postimage.org/jc6qbn4k9/bricks3.png

[Updated on: Sun, 07 December 2008 14:21]

Report message to a moderator

Previous Topic: Some more questions
Next Topic: 4 Map Questions
Goto Forum:
  


Current Time: Sun Dec 22 13:39:10 MST 2024

Total time taken to generate the page: 0.01090 seconds