ID:143386
 
Code:mob
Login()//Login
switch(input("Welcome to (Naruto Renden)! What would you like to do?") in list("New Game","Load Game", "Quit")//Choose if you want to make a new game,load an old one or quit
if("New Game")
src.name = input("What would you like your name to be?","Name input")//Ask their name
world << "World: [src.]([key]) has logged in."//Tell the world they logged in
if:("Load Game")//if they choose load game
var/savefile/F = new("saves/[src.key].sav")
cansave = 1.
Read(F)
var/lx,ly,lz
F["last_x"] >> lx//load last x location
F["last_y"] >> ly//load last y location
F["last_z"] >> lz//load last z location
loc = locate(lx,ly,lz)
world << "World:[src]([key]) has logged in."
Save()
if("Quit")//if they quit
del(src)//log them out



Problem description:My codeing.dm:50:error: if: missing comma ',' or right-paren ')'

could some1 help me with this plz
1. The DM tags are there for a reason.
2. The error message is fairly descriptive, clear, and points to the exact line where the error is.
3. Your round brackets should be balanced on every line.
4. There should not be a colon after that if.
In response to Hazman
Hazman wrote:
3. Your round brackets should be balanced on every line.

ah yes, the order of operations, round brackets, exponents, multiply/divide, add/substract. not exactly how i remember learning it =P

and as to the error youre missing a ) on the end of that switch
In response to Falacy
ty guys i shall try it out :)
In response to Hazman
Hazman wrote:
1. The DM tags are there for a reason.
2. The error message is fairly descriptive, clear, and points to the exact line where the error is.
3. Your round brackets should be balanced on every line.
4. There should not be a colon after that if.

not to go offtopic 'round' :P weren't you just mentioning that in another topic. Those are parentheses (SP)
I can't even believe someone used code that someone posted asking for help with.
Just wow.