ID:150058
 
I keep gettin an error say

duplicate definitions

when I use switch.
Please post the code that give you the error.
In response to Nadrew (#1)
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 (#2)
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 (#3)
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 (#4)
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
FirstTimePlayer()
// Do your stuff here.
// Return 1 if they should be allowed to login.
return 1
In response to Deadron (#5)
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.