ID:142595
 
Code:
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)


switch(input("Do you want to join [team]?",text) in list ("Yes","No")

You need another parentheses at the end of that line...

"missing comma ',' or right-paren ')'"

...just as the compiler said.

uuhhh... the hp number you put is freaking absurb. 1,000,000 should be good enough unless u have hackerz
In response to Nickr5
k that worked, but then i added this
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.verbs += typesof(/mob/teams/verb) ////<-----------added that
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..."


and got this
staff.dm:125:error:/mob/teams/verb: compile failed (possible infinite cross-reference loop)



In response to RanEsu
first off ur stretching the page

so cut off ur hp, it dont need to be higher then 1m
In response to RanEsu
First, make the HP reasonable.

Second, the problem is because Talk() is in typesof(/mob/team/verb) so you get a "infinite cross reference loop", again what the compiler says.
In response to Dark Armor Zero
Dark Armor Zero wrote:
uuhhh... the hp number you put is freaking absurb. 1,000,000 should be good enough unless u have hackerz


well, its in Gm room, and their gonna wanna afk train in GM room, so.... lol
they need like inf. health

lol, ill take it down eventually tho, probably down to where i can still see the end.... lol
In response to Nickr5
how would i fix that though >_>
In response to RanEsu
RanEsu wrote:
Dark Armor Zero wrote:
uuhhh... the hp number you put is freaking absurb. 1,000,000 should be good enough unless u have hackerz


well, its in Gm room, and their gonna wanna afk train in GM room, so.... lol
they need like inf. health

lol, ill take it down eventually tho, probably down to where i can still see the end.... lol
first prob, afk training? if i wanted to go take a crap while gaining lvls i'd hire some1 to leech me or some garbage like that.
In response to RanEsu
By using your brain
In response to Nickr5
oh i think i know what to do..... ma-b


i cut the health down lol
In response to RanEsu
Yes, that would help, but it's not your problem here.
Do you know what that line you added does? What's included in what you're adding to the user's verbs that could cause an infinite loop? Do you even need that line?
//infinate loop <<These Can Be Caused Mainly By Something Adding Itself Such As
mob/g/verb
blah()
usr<<"BLAH"
add_Blah()
usr.verbs+=typesof(/mob/g/verb)
//That Is How A Infinite loop may be caused
//To fix You May Have To Do This..
mob/g/verb
blah()
usr<<"BLAH"
mob/h/verb
add_Blah()
usr.verbs+=typesof(/mob/g/verb)
In response to Lunar_Reaper
Three months later, the Reaper takes your soul!