I keep gettin an error say
duplicate definitions
when I use switch.
ID:150058
![]() Dec 23 2001, 5:48 pm
|
|
![]() Dec 23 2001, 8:20 pm
|
|
Please post the code that give you the error.
|
Nadrew wrote:
Please post the code that give you the error.switch(team)//it doen't allow the variable team here if(0)//gives me one here even with "" colort = "unselected"//it hates this if(1)//even with "" colort = "blue"//hates this if(3)//even with "" colort = "yellow"//hates this Tell me if you need more code. |
Yes, that code doesn't show me much of how you're placing switch() and defining the vars, and next time use <DM>, and </DM> around your code block to make it look better.
|
Nevermind I found the problem. Now however you can help me though. How do you do something THE VERY FIRST TIME someone logs in.
|
Exadv1 wrote:
Nevermind I found the problem. Now however you can help me though. How do you do something THE VERY FIRST TIME someone logs in. If you are using the CharacterHandling library, it gives you a hook for this. You override this function: mob/BaseCamp/FirstTimePlayer |