ID:264595
 
Code:
status="Main 24/7 Server Hosted by: ([Hoster])"


Problem description: Main.dm:4:error: : expected a constant expression < That is the Error.

Revolution Gohan wrote:
Code:
> status="Main 24/7 Server Hosted by: ([Hoster])"
>

Problem description: Main.dm:4:error: : expected a constant expression < That is the Error.


[Hoster] is not constant as it may change

Best bet is to change the status once the world start

world/New()
world.status="Main 24/7 Server Hosted by: ([world.Host])"
//I don't know if this variable exist lol
//I never made nothing with host, so in case this doesnt work, loop around and find the mob with the host ip
//(Or find the proper world.host variable)
In response to Abrax
Abrax wrote:
> world/New()
> world.status="Main 24/7 Server Hosted by: ([world.Host])"
> //I don't know if this variable exist lol
> //I never made nothing with host, so in case this doesnt work, loop around and find the mob with the host ip
> //(Or find the proper world.host variable)
>


One problem, host in world.host is uncapitalized.
You can only set dynamic values during runtime.
world
OpenPort()
status = "Main 24/7 Server Hosted by: ([host])"
return ..()
In response to Hi1
Hi1 wrote:
Abrax wrote:
> > world/New()
> > world.status="Main 24/7 Server Hosted by: ([world.Host])"
> > //I don't know if this variable exist lol
> > //I never made nothing with host, so in case this doesnt work, loop around and find the mob with the host ip
> > //(Or find the proper world.host variable)
> >

One problem, host in world.host is uncapitalized.

One problem, you didnt read what I wrote.

The correct answear is:
Yeah, the variable exist, but its not capitalized

Thx for pointing out anyway