Actually, it was a clear error. You're ignorant to think I didn't know the problem to duplicate definitions.
You do know the problem of duplicate definitions, yes.
But you didn't see that he only showed us the bottom part.
Actually, it was a clear error. You're ignorant to think I didn't know the problem to duplicate definitions. You do know the problem of duplicate definitions, yes. But you didn't see that he only showed us the bottom part. |
turf That's all you need, now please DO read a demo! |
The last variable in the problem was that the error said there was duplicate definitions of "say", concluding that there's two say verbs/procedures. Fixing that would mean removing one.
|
This is simple, it's just that you're not catching on. When we said remove the say verb, we meant remove it all! Not just the name and the arguments.
|
Ok the top parts of my code are tabs,and you've used spaces there and these errors come lol
Test world.dm:34:error:say :duplicate definition Test world.dm:6:error:say :previous definition |
YOu did nothing but make it a hard time for us! Please, read some demos that teach you what a procedure/verb is! That way you won't have so much trouble in the future.
|
i dont want to be mean but after reading all fifty one posts i would just have to say that not everyone is meant to code using byond. perhaps you could try your luck with icon design.
|
mob
icon = 'person.dmi'
verb
say(msg as text)
world << "[usr]: [msg]"
//what the usr says is passed into "msg" as text
//the world sees chatroom-like output
//make it so all mobs will be created with the person icon
turf
grass
icon = 'grass.dmi'
//defines a "grass" prototype, which is a kind of turf...
//and has an icon named 'grass.dmi'. In single quotes!
world
turf = /turf/grass
//we set one of our world's characteristics:
//its default turf is the grass turf.
mob
icon = 'person.dmi'
Login()
icon_state = gender
..()
verb
say(msg as text)
world << "[usr]: [msg]"
//makes it so all mobs will be created with the person icon
//when a player logs in, make their icon's state
//the gender of their key. Then call the parent!
//The world sees chatroom-like output
The errors now are :
Test world.dm:34:error:say :duplicate definition
Test world.dm:6:error:say :previous definition