ID:145491
 
Code:
world
hub = "Mxjerrett.TheLastHero"


mob/verb/start_game()
world.visibility = 1
world.version = 1.22
world.status = "Host: [ (!Host? "Unknown" : Host)} | [world.version]"


Problem description:
i get the following error.


unterminated text expression (expexting ])
error: missing expression
error: end of file: expected }
error: location of top-most unmatched {
Mxjerrett wrote:
Code:
> world
> hub = "Mxjerrett.TheLastHero"
>
>
> mob/verb/start_game()
> world.visibility = 1
> world.version = 1.22
> world.status = "Host: [ (!Host? "Unknown" : Host)} | [world.version]"
>
>
>

Problem description:
i get the following error.


unterminated text expression (expexting ])
error: missing expression
error: end of file: expected }
error: location of top-most unmatched {

You have too many opening symbols with no closing ones. Try something like:

world.status = "Host: [ (!Host)? "Unknown" : Host] | [world.version]"
In response to Aaiko
how do i set up the variable for the host do i just do

var
host


In response to Mxjerrett
Mxjerrett wrote:
how do i set up the variable for the host do i just do

var
host



Well in your case it would be "Host" with a capital H. And yes, that is how you would do it. The way you could declare Host is by something like this:

client/New()
..()
if(!src.address)Host=src.key
In response to Aaiko
It'd probably be better to compare mob.client.address to world.address.
In response to Artemio
Artemio wrote:
It'd probably be better to compare mob.client.address to world.address.

Whatever works for you. But in some cases I have had problems with that way, so I didn't recommend it to him. He could also compare it to "127.0.0.1" as well.
In response to Aaiko
i tried doing what u told me i updated everything and when i host my game it still does the same thing i am kinda new with this kind of stuff so i am trying to keep up but i am getting dizzy.
In response to Mxjerrett
I cant seem to get it to work can anyone help me here see when i do it nothing appears in the box on the hub page