Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


this gave me a headache

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Random spam
View previous topic :: View next topic  
Author Message
gogodr
I post too much
Reputation: 125

Joined: 19 Dec 2006
Posts: 2041

PostPosted: Sat Nov 21, 2009 12:52 pm    Post subject: this gave me a headache Reply with quote

had to fix the code like 10 times XP It was always missing something

Code:
void FixNames()
        {
            int x, y, z, a, h, m;
           
            y = Equips.Length;
            z = ActionBar.Length;
            a = CharactersAlliance.Length;
            h = CharactersHorde.Length;
            m = CharactersMonster.Length;
           
            char[] xnb = { 'b', 'n', 'x', '.' };

            for (x = 1; x < y; x++)
            {
                Equips[x] = Path.GetFileName(Equips[x]);
                Equips[x] = Equips[x].TrimEnd(xnb);
            }
            for (x = 1; x < z; x++)
            {
                ActionBar[x] = Path.GetFileName(ActionBar[x]);
                ActionBar[x] = ActionBar[x].TrimEnd(xnb);
            }
            for (x = 1; x < a; x++)
            {
                CharactersAlliance[x] = Path.GetFileName(CharactersAlliance[x]);
                CharactersAlliance[x] = CharactersAlliance[x].TrimEnd(xnb);
            }
            for (x = 1; x < h; x++)
            {
                CharactersHorde[x] = Path.GetFileName(CharactersHorde[x]);
                CharactersHorde[x] = CharactersHorde[x].TrimEnd(xnb);
            }
            for (x = 1; x < m; x++)
            {
                CharactersMonster[x] = Path.GetFileName(CharactersMonster[x]);
                CharactersMonster[x] = CharactersMonster[x].TrimEnd(xnb);
            }
        }
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Random spam All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites