ID:163595
 
var/host=""
if (client.address==world.address)
host=usr
world/status="Hazordhu Classic Renewal - [host]'s Server"

Here is what I have but I get this error
playersave.dm:4:error::expected a constant expression
playersave.dm:1:error:client.address:duplicate definition
playersave.dm:1:error:world.address:duplicate definition
playersave.dm:1:error:== :instruction not allowed here
playersave.dm:1:error::empty type name (indentation error?)
playersave.dm:2:error:usr:undefined var
playersave.dm:2:error::empty type name (indentation error?)
You can't just paste code directly and hope it'll work. It must be within a proc!

world/New()
status="Hazordhu Classic Renewal - [host||"\[unknown\]"]'s Server"
return ..()


Note that in BYOND 4.0, world.host will equal the key that is hosting the game.

-- Data
That's probably due to the fact that it's floating in the file, under no procedure.
In response to Android Data
playersave.dm:2: unterminated text (expecting ")
playersave.dm:2:error: ]: expected }
playersave.dm:2:error: location of top-most unmatched {

Okay it got rid of some errors but there are still some left
In response to Hellonagol
Hellonagol wrote:
Okay it got rid of some errors but there are still some left

So I made a typo with it (fixed now in my original post). Instead of trying to fix it yourself, you decide to reply with the errors and complain instead.

The next time, fix it yourself, since I won't be helping you with something that trivial.

-- Data