Need a C++ Expert help menu

User Tag List

Results 1 to 7 of 7
  1. #1
    C-Death's Avatar Banned
    Reputation
    134
    Join Date
    Jun 2007
    Posts
    504
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need a C++ Expert help

    I'm trying to customize the arena teams and i don't know how to compile, but anyways, would this work if i were to compile?

    Code:
    	{
    		uint32 Slots = 0;
    		if(Type == ARENA_TEAM_TYPE_2V2)
    			Slots=4;
    		else if(Type == ARENA_TEAM_TYPE_3V3)
    			Slots=6;
    		else if(Type == ARENA_TEAM_TYPE_5V5)
    			Slots=10;
    		else if(Type == ARENA_TEAM_TYPE_6V6)
    			Slots=12;
    		else if (Type == ARENA_TEAM_TYPE_7V7)
    			Slots=14;
    		else if (Type == ARENA_TEAM_TYPE_8V8)
    			Slots=16;
    		else if (Type == ARENA_TEAM_TYPE_9V9)
    			Slots=18;
    		else if (Type == ARENA_TEAM_TYPE_10v10
    			Slots=20;
    		ASSERT(Slots);
    		
    		m_members = new ArenaTeamMember[Slots];
    		memset(m_members,0,sizeof(ArenaTeamMember)*Slots);
    		m_slots = Slots;
    		m_memberCount=0;
    	}
    Thanks
    C-Death

    Need a C++ Expert help
  2. #2
    SectorSeven's Avatar Banned
    Reputation
    444
    Join Date
    Oct 2007
    Posts
    1,948
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Don't think so... 85% sure it wont.... Why not just change in Arenas.h

  3. #3
    CoolManBob's Avatar Active Member
    Reputation
    92
    Join Date
    Jul 2006
    Posts
    208
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by C-Death View Post
    I'm trying to customize the arena teams and i don't know how to compile, but anyways, would this work if i were to compile?

    Code:
    	{
    		uint32 Slots = 0;
    		if(Type == ARENA_TEAM_TYPE_2V2)
    			Slots=4;
    		else if(Type == ARENA_TEAM_TYPE_3V3)
    			Slots=6;
    		else if(Type == ARENA_TEAM_TYPE_5V5)
    			Slots=10;
    		else if(Type == ARENA_TEAM_TYPE_6V6)
    			Slots=12;
    		else if (Type == ARENA_TEAM_TYPE_7V7)
    			Slots=14;
    		else if (Type == ARENA_TEAM_TYPE_8V8)
    			Slots=16;
    		else if (Type == ARENA_TEAM_TYPE_9V9)
    			Slots=18;
    		else if (Type == ARENA_TEAM_TYPE_10v10
    			Slots=20;
    		ASSERT(Slots);
    		
    		m_members = new ArenaTeamMember[Slots];
    		memset(m_members,0,sizeof(ArenaTeamMember)*Slots);
    		m_slots = Slots;
    		m_memberCount=0;
    	}
    Thanks
    C-Death
    No it wont work here is the proper way

    switch(Type)
    case ARENA_TEAM_TYPE_2V2:
    slots = 2;
    so on and so forth until you have them all

  4. #4
    Pragma's Avatar Contributor
    Reputation
    261
    Join Date
    Feb 2007
    Posts
    630
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    dont forget break;


  5. #5
    C-Death's Avatar Banned
    Reputation
    134
    Join Date
    Jun 2007
    Posts
    504
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So if i EVER Learn to compile, will that let me make a 10v10 arena team?

  6. #6
    jokerjokes's Avatar Active Member
    Reputation
    75
    Join Date
    Apr 2007
    Posts
    902
    Thanks G/R
    3/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Lol you will learn to compile, gastric made a guide about it man, easy easy easy.

  7. #7
    ~SaiLyn~'s Avatar Contributor
    Reputation
    280
    Join Date
    Aug 2007
    Posts
    546
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That wouldnt compile at all.

    By Arena.h neither.

    As a dll it self get ready for a halla errors ^^ :homer:

Similar Threads

  1. [LUA] Need expert help
    By Juve21 in forum World of Warcraft General
    Replies: 3
    Last Post: 10-13-2008, 11:04 PM
  2. [LUA] Need expert help
    By Juve21 in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 10-13-2008, 02:16 AM
  3. Dwarven Male to a wonderful Tauren Male, need some expert help :]
    By Arrn in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 09-11-2007, 07:27 AM
All times are GMT -5. The time now is 02:42 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search