Author Topic: MessageBox Query  (Read 916 times)

0 Members and 1 Guest are viewing this topic.

Mihhaelo

  • Sapling
  • **
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 67
MessageBox Query
« on: July 02, 2010, 03:34:05 PM »
I know you can use MessageBox like this, to display messages.
(click to show/hide)

And i know you can also use it like this, to display variables.
(click to show/hide)

Is it possible to display both a message and variable in one messagebox? And how would the code look?

w4tc

  • Achiever
  • Shrub
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 170
Re: MessageBox Query
« Reply #1 on: July 02, 2010, 06:48:24 PM »
is it not this?

(click to show/hide)
« Last Edit: July 02, 2010, 08:22:59 PM by w4tc »

Mihhaelo

  • Sapling
  • **
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 67
Re: MessageBox Query
« Reply #2 on: July 02, 2010, 07:26:36 PM »
Hmmm, that didn't work. Thanks for the suggestion though.

annikk.exe

  • Achiever
  • Ent
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1,794
Re: MessageBox Query
« Reply #3 on: July 02, 2010, 08:15:12 PM »
I have wondered the same thing, actually.  I am afraid I am no wiser than you on this.  Will watch this thread with interest though.. :>

w4tc

  • Achiever
  • Shrub
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 170
Re: MessageBox Query
« Reply #4 on: July 02, 2010, 08:29:34 PM »
Hmmm annikk is it possible that is a String?

@Mihhaelo can you gave me you lua in code?
xD becaus xD i never try things in time
i wanne see it :p

it is also something with this :[[]] ect.
try it

(click to show/hide)
« Last Edit: July 02, 2010, 08:34:33 PM by w4tc »

Pilchard123

  • Tester
  • Old Oak
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 17
  • Posts: 899
  • Eufloria: Yes
Re: MessageBox Query
« Reply #5 on: July 03, 2010, 02:40:45 PM »
The concatenation operator in LUA is .. (two dots), so to make a message box say 'Your score is:', then the score, I think you would use

Code: [Select]
Pause()
  MessageBox("Your score is:" .. score)
  WaitDialog()
  Unpause()

EDIT:Yeah, that works.
« Last Edit: July 03, 2010, 02:51:16 PM by Pilchard123 »

Mihhaelo

  • Sapling
  • **
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 67
Re: MessageBox Query
« Reply #6 on: July 03, 2010, 05:11:02 PM »
Thank you very much for that, you're a legend  :D

annikk.exe

  • Achiever
  • Ent
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1,794
Re: MessageBox Query
« Reply #7 on: July 04, 2010, 10:10:46 PM »
Sweet :>