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
ID:143386
![]() Sep 24 2007, 11:29 am
|
|
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 |
Hazman wrote:
1. The DM tags are there for a reason. not to go offtopic 'round' :P weren't you just mentioning that in another topic. Those are parentheses (SP) |
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.