I keep gettin an error say
duplicate definitions
when I use switch.
ID:150058
Dec 23 2001, 4:48 pm
|
|
Dec 23 2001, 7:20 pm
|
|
Please post the code that give you the error.
|
In response to Nadrew
|
|
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. |
In response to Exadv1
|
|
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.
|
In response to Nadrew
|
|
Nevermind I found the problem. Now however you can help me though. How do you do something THE VERY FIRST TIME someone logs in.
|
In response to Exadv1
|
|
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 |
In response to Deadron
|
|
Would I include that in my main code under my mobr procs?
Also How do I make it so that the compiler runs the code all the time or once every few seconds. |