man this is really a stupid (probally easy) thing to ask but...
i can't fix this code...
it keeps going to the city, i'm formiliar with this problem and usually i know how to fix it...
switch(input("Where would you like to send [M]?","[M]")in list("City","Armoury","Training","Jump Program"))
if("Jump Program")
M.loc=locate(46,73,2)
M.frozen=0
M.inmatrix=1
if("Training")
M.loc=locate(9,57,2)
M.frozen=0
M.inmatrix=1
if("Armoury")
M.loc=locate(34,61,2)
M.frozen=0
M.inmatrix=1
if("City")
M.loc=locate(23,23,2)
M.frozen=0
M.inmatrix=1
ID:174989
![]() Jun 25 2003, 1:36 am
|
|
![]() Jun 25 2003, 2:08 am
|
|
Your indentation is completely messed up. Each if() statement should be indented once more, and all the "M." lines should be indented twice more.
|
Well, then it's still wrong despite that. =P Posting some more complete (and current) code and the exact errors and locations of those errors would help.
|
I'M DUTCH! DON'T MAKE THE TEXT TO HARD FOR ME!
And no, u ain't getting more of the code, u don't need more |
Ok, Dutch Boy, actually we probably do, and we need the errors, Crispy is a well known and respected programmer. He would never steal your code, and next time, to make it easier on the eyes use the dm tags.
P.S. Ever heard of CTRL + C and CTRL + V? |
what u mean with ever heard of ctrl c and ctr v...
i always use that... it's copy and paste shortcuts... |
btw there are no errors in my code but all send to locations are on the same line so the person gets send to the city (lowest).
if(M.inchair && M.team==usr.team) world<<"[usr] jacks [M] into the Matrix!" switch(input("Where would you like to send [M]?","[M]")in list("City","Armoury","Training","Jump Program")) if("Jump Program") -----M.loc=locate(46,73,2) M.frozen=0 M.inmatrix=1 if("Training") -----M.loc=locate(9,57,2) M.frozen=0 M.inmatrix=1 same line( if("Armoury") -----M.loc=locate(34,61,2) M.frozen=0 M.inmatrix=1 if("City") -----M.loc=locate(23,23,2) M.frozen=0 M.inmatrix=1 i tried making spaces and stuff but then i'm gettin inconsident indentation stuff errors... if(M.inchair && M.team==usr.team) world<<"[usr] jacks [M] into the Matrix!" switch(input("Where would you like to send [M]?","[M]")in list("City","Armoury","Training","Jump Program")) if("Jump Program") M.loc=locate(46,73,2) M.frozen=0 M.inmatrix=1 if("Training") M.loc=locate(9,57,2) M.frozen=0 M.inmatrix=1 if("Armoury") M.loc=locate(34,61,2) M.frozen=0 M.inmatrix=1 if("City") M.loc=locate(23,23,2) M.frozen=0 M.inmatrix=1 (that kinda ways, tried it all!) |
DM TAGS! < and > with DM in the middle. then after your code you put </ and > with DM in the middle! DM TAGS! MEMORIZE THEM! LET THEM HAUNT YOU!
|
Wow, I remember when I was screaming at Airjoe like this! lol! See, I told you you would one day join the cult of the DM tags! With me and my Demons
|
Actually, it dosn't just close HTML tags. It makes long pieces of code that would usually go onto the next line stay on one line. If I put DM tags around this paragraph, it would be on 1 line. Makes things easier to read.
|
No, while in the forums, to post code you put dm tags around the code, you know html, everyone does! dm with < and > around it, then you type your code, then you put dm in between </ and >
it gives this result, it defines regular text from code, and if you have html, it uses what's typed, not the effect. |
switch(input("Where would you like to send [M]?","[M]" <font color = red>as text</font>)in list("City","Armoury","Training","Jump Program"))
<font color = red>THIS IS WHAT YOU FORGOT! lol</font> i think |