Login | Register

Show message function

September 19, 2006, 17:15 by Calle
[loading]
-->
<b>Question:</b> "Hello!

I'm making something that you can see the code of the color, but what i must use?

I have use this but it doesn't works!

CODE
var tmp;
tmp=get_color(0);
if tmp>-1
message_caption(true,'CODE:')
show_message(tmp)"

<b>Answer:</b> Okey, most of your code is correct, but you have problem with displaying it. This is a common problem, cauesd by the fact that <b>show_message() can't display real values</b>. So you must convert it, simply exchange "show_message(tmp)" with "show_message(string(tmp))". This should work.

<b>Epilogue:</b>
Radek says, "Thanks! it works!"

Comments

Loading comments... [loading]
.
Users logged in:

game maker articles, game maker examples, game maker tutorials, gmtutorials, game maker questions and answers, game maker crash course, how to create games