ID:148970
 
This is the second time something like this happened. I on't see a thing wrong with it . The error messeage is

teleport.dm:11:error: if: missing comma ',' or right-paren ')'


mob
tele1
name = "Teleporter"
icon = 'turfs.dmi'
icon_state = "dirt"
verb
Teleport()
set src in view(2)
set category = "Teleport"
switch(input("Would you like to go to the Next Area----Shubulu Forest") in list("Yes","No")
if("Yes")
usr.loc = locate(1,57,2)
if("No") usr << "Ok"
Codesterz wrote:
This is the second time something like this happened. I on't see a thing wrong with it . The error messeage is

teleport.dm:11:error: if: missing comma ',' or right-paren ')'


mob
tele1
name = "Teleporter"
icon = 'turfs.dmi'
icon_state = "dirt"
verb
Teleport()
set src in view(2)
set category = "Teleport"
switch(input("Would you like to go to the Next Area----Shubulu Forest") in list("Yes","No")
if("Yes")
usr.loc = locate(1,57,2)
if("No") usr << "Ok"
mob
tele1
name = "Teleporter"
icon = 'turfs.dmi'
icon_state = "dirt"
verb
Teleport()
set src in view(2)
set category = "Teleport"
switch(input("Would you like to go to the Next Area----Shubulu Forest") in list("Yes","No")<font color="yellow">)</font>
if("Yes")
usr.loc = locate(1,57,2)
if("No") usr << "Ok"
In response to Soccerguy13
thanks! but I now ran into another error

teleport.dm:10:error::invalid expression
In response to Codesterz
im not sure but move the usr<< at the bottom below the if() and tab it one more...
In response to SuperSaiyansElite
Need help with this code. This'll allow to go to the new maps in my game.
Codesterz wrote:
This is the second time something like this happened. I on't see a thing wrong with it . The error messeage is

teleport.dm:11:error: if: missing comma ',' or right-paren ')'


mob
tele1
name = "Teleporter"
icon = 'turfs.dmi'
icon_state = "dirt"
verb
Teleport()
set src in view(2)
set category = "Teleport"
switch(input("Would you like to go to the Next Area----Shubulu Forest") in list("Yes","No")
if("Yes")
usr.loc = locate(1,57,2)
if("No") usr << "Ok"

I think your problem is the input proc is indented one to many make it directly under the set category.