mob/teams
name="Team Register"
icon='Helpers.dmi'
icon_state="2"
HP=999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999123
verb
Talk()
set src in oview(1)
set category="teams"
switch(input("Do you wish to form a team?",text) in list ("Yes","No"))
if("Yes")
if(usr.teams==0)
alert("By clicking OK, you agree to the following terms:<br>1) I will keep my team name the way it comes, the only thing i hold the power to change is the color</br><br>2) I will not abbuse team powers</br><br>3) I will not exploit any team bugs</br><br>4) I understand that the team name must be 3-12 letters long and will not take any other team's name; or take a team name popular to the anime/manga Air Gear</br><br>5) I also understand that by clicking OK, the rules are subject to change at any time, and i will follow any lawfull directive of these rules</br>")
alert("What do you want the name of your team to be?")
var/team = input("","team") as text|null
usr.teams=1
usr.team="[(team)]"
usr.verbs += typesof(/mob/teams/leader/verb)
usr.Yen -= 10000
usr.leader=1
else
usr<<"Your already in a team......"
else
usr<<"If you feel you are not ready it is best..."
mob
var
team=""
teams=0
recruits=0
leader=0
mob/teams/leader
verb
Invite(mob/M in view(10))
set category="team"
switch(input("Do you really want to let them onto your team?", text) in list ("Yes","No"))
if("Yes")
if(M.teams==1)
usr<<"their on a team already"
else
switch(input("Do you want to join [team]?",text) in list ("Yes","No")
if("Yes")//<-----THIS IS LINE 147
M.teams=1
M.team="[src.team]"
usr.recruits+=1
if("No")
usr<<"[M] said no..."
else//<----- LINE 153
usr<<"Understood"
Boot(mob/M in world)
set category="team"
switch(input("Are you sure you want to kick them out?", text) in list ("Yes","No"))
if("Yes")
if(M.teams==1)
M.teams=0
M.team=""
usr.recruits-=1
else//<------LINE 164
usr<<"There not from your team"
else//<-----LINE 166
usr<<"Understood."
mob/teams
verb
teamSay(msg as text)
set desc = "Say something to everyone in your team"
var/list/L
L = list("font size","font color")
for(var/H in L)
if(findtext(msg,H))
alert("No HTML in text!")
return
if(length(msg) >= 400)
alert("Message is too long")
return
for(var/mob/M in world)
if(usr.team == M.team&&M.teams==1)
M << "<font size=1><font face=verdana><B><font color=white>(team Say)-[usr]<font color=red>: [msg]"
mob
verb
Leaveteam()
set category = "team"
switch(input("Are you sure you want to do this?",text)in list("Yes","No"))
if("Yes")
switch(input("Are you POSOTIVE you want to do this?",text)in list("Yes","No"))
if("Yes")
usr.teams=0
usr.team=""
if("No")
usr<<"Good Idea"
if("No")
usr<<"Good idea not to betray your team"
Problem description:
staff.dm:147:error: if: missing comma ',' or right-paren ')'
staff.dm:153:warning: empty 'else' clause
staff.dm:164:warning: empty 'else' clause
staff.dm:166:warning: empty 'else' clause
mygame.dme:29:error: unbalanced }
mygame.dmb - 2 errors, 3 warnings (double-click on an error to jump to it)
You need another parentheses at the end of that line...
"missing comma ',' or right-paren ')'"
...just as the compiler said.