ID:273432
 
I am running a server on dbzenhosting and my server keeps crashing due to runtimes. I cant see the runtime errors like on DD so its really a hastle. Can anyone here give me or show me how to make a Runtime Error Log script for my source? Thank you for any help given.
world
log = file("file_for_log_errors.txt")
In response to GhostAnime
Thank you!
DBU Programming\Login.dm:2:error: log: may not be set at compile-time

I get this error when i add that little code in my source. Any reason why?
In response to LSSJ Chris
As it states, you cannot define it at compile-time. That means you have to set the value at run-time:
world
New() // When DM creates the world...
log = file("...")
..()