IN my area coding i always get this error,
Areas.dm:84:error: area: expected end of statement
which says its on line...
area/teleport/Ezerath/EEnEzerathc
of the code
area/teleport/Ezerath/EEnEzerathc
Enter(mob/M)
M.loc = locate(135,3,3)
and here is the before and after...
area/teleport/Ezerath/2ndFlrDrEnt
Enter(mob/M)
M.loc = locate(104,9,3)
area/teleport/Ezerath/EEnEzerathc
Enter(mob/M)
M.loc = locate(135,3,3)
area/teleport/Ezerath/EEnUEzerathc
Enter(mob/M)
M.loc = locate(104,12,3)
Whats wrong?
ID:147744
![]() Dec 30 2003, 11:33 am
|
|
![]() Dec 30 2003, 1:48 pm
|
|
Sometimes BYOND mistakenly picks up errors that aren't really there. I've had this happen on 4 different computers now. Try cutting the areas, compiling, then pasting them back in. If that doesn't work, cut them, compile, then retype them.
|
Strange. That code looks fine to me. Kudos on providing that level of detail in the code you posted, most people either don't post enough or post waaaaay too much. =)
One thing that you do need to fix, though, is that those Enter() procs should all be Entered(). Use Enter() when you're asking "Can someone enter this space?". Use Entered() when you want to say "If someone enters this space, do this." Otherwise you can get all kinds of funky things happening with pathfinding routines and the like. |
I think byond doesn't like numbers, because when i start the name wiht a "2" it doesnt work, but if i reanmed it to Enter2ndFlrDr it works fine! anyway, thanks for the help! and i'll be sure to use it!
|