ID:262669
 
Code:
turf
leaftest
icon = 'scenery.dmi'
icon_state = "tobuild1"
density = 0
if(usr.village=="Leaf")
Enter()
usr.loc=locate(77,21,10)
else
usr << "Take the exam at your own Village!"

tiles.dm:105:error:usr.village:duplicate definition
tiles.dm:105:error:"Leaf":duplicate definition
tiles.dm:105:error:== :instruction not allowed here
tiles.dm:105:error::empty type name (indentation error?)
tiles.dm:106:error::empty type name (indentation error?)
tiles.dm:109:error:usr:duplicate definition
tiles.dm:109:error:"Take the exam at your own Village!":duplicate definition
tiles.dm:109:error:<< :instruction not allowed here


Problem description:What are these errors here for?? It looks fine to me...

Put the if under the enter and re align the else with it.
turf
leaftest
icon = 'scenery.dmi'
icon_state = "tobuild1"
density = 0
Enter(mob/M)
if(M.village == "Leaf")
M.loc = locate(77,21,10)
else
M << "Take the exam at your own Village!"



In response to Mecha Destroyer JD
LOL wow stupid error i didnt see >_> thx
In response to Kurosaki_Ichigo-San
No problem.
You can't have and if() statement outside of a proc/verb/#___.

turf/leaftest
icon='leaf.dmi'
icon_state="leaf"
Enter(mob/A)
if(ismob(A)&&A.client) //Edited after UP's post
if(A.village=="Leaf")A.loc=locate(77,21,10)
else return ..() //Is it 'return 0' or 'return ..()'?
//This hasn't been tested.


Anyways, that should work, I hope.