I can't get a message to display

Maps and the art of mapmaking.
User avatar
Belchior
Peasant
Peasant
Posts: 57
Joined: 17 May 2009
Location: Finland
Contact:

Unread postby Belchior » 11 Jun 2009, 20:03

well i think is that. i have copied my line from my ownmap, and it work there perfectly :)

User avatar
Asheera
Round Table Knight
Round Table Knight
Posts: 4506
Joined: 06 Jul 2008
Location: The Shadows
Contact:

Unread postby Asheera » 12 Jun 2009, 01:51

I don't know if this matters, but I use '/' as Nival's scripts are also using that one.
No matter how powerful one becomes, there is always someone stronger. That's why I'm in a constant pursuit of power, so I can be prepared when an enemy tries to take advantage of me.

Galev
Leprechaun
Leprechaun
Posts: 28
Joined: 11 Jun 2009

Unread postby Galev » 12 Jun 2009, 07:16

That was the problem. You must use /-s
I don't see why they don't warn you about this in the manuals... anyway, I succeeded in a messagebox for first day.

Could you tell me one thing. Does the noumber of spaces matter in a formula?

Is this:
function whatever()
if anything==9
equal with this:
function whatever_()
if anything==_9
with a space at the _ ???

Franzy
War Dancer
War Dancer
Posts: 362
Joined: 07 Sep 2007
Location: Moscow, Russia
Contact:

Unread postby Franzy » 12 Jun 2009, 10:34

In that case space don't count, though they do count in object names.

So, "my object" <> "my object" <> "myobject" <> " my object"

Generally, you should always check trailing spaces in the field "name" in an object propertiies tree, can save you a lot of nerves.

Between operators you can have as many spaces and tabs as you like.

Galev
Leprechaun
Leprechaun
Posts: 28
Joined: 11 Jun 2009

Unread postby Galev » 12 Jun 2009, 14:19

Thanks a lot, it's good to know.


Return to “Mapmaking Guild”

Who is online

Users browsing this forum: No registered users and 12 guests