ID:139098
 
Code:
world/Topic(T)
if(findtext(T,"Info:") == 1)
world << copytext(T,7)


world/Del() // On deletion of world (shutting down)
..()
world.Export("[remoteserver]?Info: <font color=red><b>Server Info</b>:</font color> Server Two has been shut down.")

var/remoteserver = "byond://110.36.110.225:3133" // The address of the server to send message to, i think this is my problem =/


Problem description:

Ok first of all, this coding might seem weird because I'm new to World/Topic(), world.Export() etc, and I love to test this feature out. So first of all I have defined World/Topic() on the server I want to send message to from another server (Sever 2), then on server 2, I have coded in that on Deletion of world, send a message to the Remote Server, but it doesn't sends at all.

So can anyone help me with this? Advice, tips, examples everything is welcome. :)

- Hashir
Because ..() appears before the world.Export() the default behavior is being called first therefore the world is deleted before it can send the message. Try putting the Export command before ..().
In response to ExPixel
Thanks, but it is still not working. :(
In response to Hashir
Bump
In response to Hashir
Unfortunately, Export seems to not work inside world/Del() at all, probably because of BYOND preventing things from taking up time inside that proc.