ID:147321
 
Im trying to make it so when you log in you need to choose what team you will be playing for, but it doesnt work, can anyone help me?

mob var Ne = 0 Bl = 0 Re = 0 Necount = 0 Blcount = 0 Recount = 0 mob var N = list() R = list() B = list() Login() BACK var/team = input("What team will you join?")in list ("Blue","Red") if(team == "Blue") var/mob/M for(M in world) if(M.Bl == 1) M << "[usr] Just joined the blue team!" usr += B usr.Bl = 1 if(team == "Red") var/mob/M for(M in world) if(M.Re == 1) M << "[usr] Just joined the red team!" usr += R usr.Re = 1
Do this:

mob
var
Ne = 0
Bl = 0
Re = 0
Necount = 0
Blcount = 0
Recount = 0
mob
var
N = list()
R = list()
B = list()
Login()
BACK
var/team = input("What team will you join?")in list ("Blue","Red")
if(team == "Blue")
usr += B
usr.Bl = 1
for(var/mob/M in world)
if(M.Bl == 1)
M << "[usr] Just joined the blue team!"

if(team == "Red")
usr += R
usr.Re = 1
for(var/mob/M in world)
if(M.Re == 1)
M << "[usr] Just joined the red team!"
In response to DeathAwaitsU
i tried it, and got this :
<code>runtime error: type mismatch proc name: Login (/mob/Login) usr: Kablez (/mob) src: Kablez (/mob) call stack: Kablez (/mob): Login()</code>