ID:142541
 
2 lines:Code:
alert("You cannot boot the Captain!")
usr <<"You can't demote the captain he/she is higher than this rank'


Problem description:Squads.dm:36:error: alert: missing comma ',' or right-paren ')'
Squads.dm:59:error: usr: missing comma ',' or right-paren ')'
I get these error.

Im confused because they one has the ) at the end and the other one doesnt need.
Monkeymonk94 wrote:
2 lines:Code:
alert("You cannot boot the Captain!")
> usr <<"You can't demote the captain he/she is higher than this rank'
>

Problem description:Squads.dm:36:error: alert: missing comma ',' or right-paren ')'
Squads.dm:59:error: usr: missing comma ',' or right-paren ')'
I get these error.

Im confused because they one has the ) at the end and the other one doesnt need.
 alert("You cannot boot the Captain!")
usr <<"You can't demote the captain he/she is higher than this rank"



u misplaced the ' with a "
In response to Agrey123
Er I mistakingly copied the wrong line
if(!M)return
if(istype(M,/mob))
if(M.status == "Captain"
>>alert("You cannot boot the Captain!")<<
return
switch(alert("Are you sure that you want to boot [M] from Squad [usr.squad]?","","Yes","No"))
if("Yes")
world << "<b><font color = yellow>Squad Info: [usr] has booted [M] from Squad [usr.squad]!"
M.leavesquad()
M.squad = "Ryoka"
M.status = "Member"
if("No")
return
And
if("Promote to lieutenant"
>>if(M.status =="Captain")<<
usr << "You can't promote the Captain"
els
M.status = "Lieutenant"
M.Give_Squad_Verbs()
Errored lines have a >><< around them.
In response to Monkeymonk94
if(M.status == "Captain"
In response to Monkeymonk94
...Look at the error you are getting and look at the line above the one you point out.
In response to GhostAnime
Yeah I know about that but I put it how it actually should be I get a bunch more error
loading Bleach Unamed.dme
Squads.dm:36:error: alert: missing comma ',' or right-paren ')'
Squads.dm:68:warning: empty 'else' clause
Bleach Unamed.dme:31: unterminated text expression (expecting ])
Bleach Unamed.dme:31:error: missing expression
Bleach Unamed.dme:31:error: end of file: expected }
Squads.dm:25:error: location of top-most unmatched {
               usr <<"You can't demote the captain he/she is higher than this rank"
else
if("Promote to 2nd squad")
M.status = "3rd Seat of [usr.squad
if("Promote to 3rd seat")
if(m.status == "Captain"
// BEGIN_INTERNALS
// END_INTERNALS
// BEGIN_FILE_DIR
#define FILE_DIR .
// END_FILE_DIR
// BEGIN_PREFERENCES
// END_PREFERENCES
// BEGIN_INCLUDE
#include "Admin.dm"
#include "attackobjs.dm"
#include "bar.dm"
#include "Bleach.dm"
#include "guild.dm"
#include "hollow.dm"
#include "hud.dm"
#include "Login.dm"
#include "Mob.dm"
#include "Obj.dm"
#include "Procs.dm"
#include "s_damage2.dm"
#include "Squads.dm"
#include "team.dm"
#include "Tech List.dm"
#include "tele.dm"
#include "Tourny System.dm"
#include "training.dm"
#include "turf.dm"
#include "var.dm"
#include "verbs.dm"
// END_INCLUDE

Squad_Boot()
set category = "Squad"
var/list/Menu = list()
for(var/mob/M in world)
if(!M.client) continue
if(M.name != usr.name)
if(M.squad == usr.squad)
Menu.Add(M)
    var/mob/M = input("Who do you want to boot from the Squad?","Squad [usr.squad]") as null | anything in Menu
if(!M)return
if(istype(M,/mob))
if(M.status == "Captain"
alert("You cannot boot the Captain!")
return
switch(alert("Are you sure that you want to boot [M] from Squad [usr.squad]?","","Yes","No"))
if("Yes")
world << "<b><font color = yellow>Squad Info: [usr] has booted [M] from Squad [usr.squad]!"
M.leavesquad()
M.squad = "Ryoka"
M.status = "Member"
if("No")
return
So I didnt bother fixing it because it added a bunch more error.
In response to Monkeymonk94
Sometimes, errors hide other errors. It doesn't mean that those errors don't exist, it just means the compiler can't parse your code correctly. Fixing an error and having ten more crop up isn't a sign that you shouldn't have fixed the error.
In response to Garthor
Yeah I fixed them there the newerrors I cant fix.
In response to Monkeymonk94
The errors are, once again, VERY self-explanatory.
In response to Garthor
and AGAIN I fix them IT STILL SAYS THEY ARE THERE
In response to Monkeymonk94
Monkeymonk94 wrote:
                  M.status = "3rd Seat of [usr.squad]!"


                  if(M.status == "Captain")


                if(M.status == "Captain")


Those where missing things. I added the things you missed.

The first one was missing the ]!"

Second was mission the )

Third was missing the )
In response to Howey
Yeah I got that taken care of but could you help me with this?
    Squad_Boot()
set category = "Squad"
var/list/Menu = list()
for(var/mob/M in world)
if(!M.client) continue
if(M.name != usr.name)
if(M.squad == usr.squad)
Menu.Add(M
set category = "Squad" is Squads.dm:25:error: location of top-most unmatched { does that mean I need a { somewhere or what? Then what about the errors in the 1 file
Bleach Unamed.dme:31: unterminated text expression (expecting ])
Bleach Unamed.dme:31:error: missing expression
Bleach Unamed.dme:31:error: end of file: expected }
In response to Monkeymonk94
Monkeymonk94 wrote:
Yeah I got that taken care of but could you help me with this?
    Squad_Boot()
> set category = "Squad"
> var/list/Menu = list()
> for(var/mob/M in world)
> if(!M.client) continue
> if(M.name != usr.name)
> if(M.squad == usr.squad)
> Menu.Add(M
set category = "Squad" is Squads.dm:25:error: location of top-most unmatched { does that mean I need a { somewhere or what? Then what about the errors in the 1 file
Bleach Unamed.dme:31: unterminated text expression (expecting ])
Bleach Unamed.dme:31:error: missing expression
Bleach Unamed.dme:31:error: end of file: expected }

Menu.Add(M 

//Should be

Menu.Add(M)
In response to Howey
Thats just where I stopped copying I have it like that.
In response to Monkeymonk94
What is the exact line that it says the error is on?
In response to Howey
set category = "Squad"

In response to Monkeymonk94
It's a bsoc rip, so...

mob/Squad_Captain
verb
Squad_Invite()
set category = "Squad"
var/list/Menu = list()
for(var/mob/M in world)
if(!M.client) continue
if(M.name != usr.name)
if(M.squad == "Ryoka")
if(M.race == "Shinigami")
Menu.Add(M)
var/mob/M = input("Who do you want to recruit?","Squad [usr.squad]") as null | anything in Menu
if(!M)return
if(istype(M,/mob))
switch(alert(M,"Do you want to join Squad [usr.squad]?","","Yes","No"))
if("Yes")
M.squad = usr.squad
M.status = "Member"
M.Give_Squad_Verbs()
world << "<b><font color = yellow>Squad Info: [M] has joined Squad [usr.squad]!"
if("No")
usr << "[M] has rejected!"
return
Squad_Boot()
set category = "Squad"
var/list/Menu = list()
for(var/mob/M in world)
if(!M.client) continue
if(M.name != usr.name)
if(M.squad == usr.squad)
Menu.Add(M)
var/mob/M = input("Who do you want to boot from the Squad?","Squad [usr.squad]") as null | anything in Menu
if(!M)return
if(istype(M,/mob))
if(M.status == "Captain")
alert("You cannot boot the Captain!")
return
switch(alert("Are you sure that you want to boot [M] from Squad [usr.squad]?","","Yes","No"))
if("Yes")
world << "<b><font color = yellow>Squad Info: [usr] has booted [M] from Squad [usr.squad]!"
M.leavesquad()
M.squad = "Ryoka"
M.status = "Member"
if("No")
return


I am guessing it looks like that. Copy and paste that (get rid of the old boot invite and replace).
In response to Howey
x.x when I do that I get a bunch of indentation error
In response to Monkeymonk94
At this point I'm going to suggest, for about the millionth time, that you delete that piece of crap you have and actually learn how to program. Start here.
In response to Monkeymonk94
Monkeymonk94 wrote:
and AGAIN I fix them IT STILL SAYS THEY ARE THERE

If you would have fixed them they wouldn't be there. Try fixing it again.