ID:150766
 
Im haeving trouble linking my maps together. I used the code locate(25,15,1) to link my map and I got this error

loading DBZPW.dme
DBZPW.dm:78:error:25:duplicate definition
DBZPW.dm:78:error:15:duplicate definition
DBZPW.dm:78:error:1:duplicate definition

DBZPW.dmb - 3 errors, 0 warnings

heres where i put my code at


area/
area1
locate(25,15,1)


turf/floor
icon = 'grass.dmi'
icon_state = "grass"
turf/wall
icon = 'wall.dmi'
icon_state = "wall"
density = 1
turf/tile
icon = 'Tile.dmi'
icon_state = "tile"


could someone PLEASE help me out, I've been trying to figure this out for days and I cant get it to work. I'd really appreciate any help i can get. Thanks
On 7/30/01 5:37 pm Tatakau wrote:
Im haeving trouble linking my maps together. I used the code locate(25,15,1) to link my map and I got this error

loading DBZPW.dme
DBZPW.dm:78:error:25:duplicate definition
DBZPW.dm:78:error:15:duplicate definition
DBZPW.dm:78:error:1:duplicate definition

DBZPW.dmb - 3 errors, 0 warnings

heres where i put my code at
area/
area1
locate(25,15,1)

The problem is that you don't understand how code in BYOND works yet. You can't just put a function call like locate() in a random place in the code. It has to be inside a function.

I suggest reading the FAQ (linked to on the left) -- in particular, the part for newbies that points you to tutorials and sample code. Try starting with some sample code, then moving up from there.

If you've already read all that in detail and played with the samples and you don't understand what's wrong, I'm out of suggestions.