# A problem

**URL:** <https://forum.makecode.com/t/a-problem/2777>\
**Category:** Help\
**Created:** [July 14, 2020, 8:39pm UTC](https://forum.makecode.com/t/a-problem/2777 "2020-07-14T20:39:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dreadmask197](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dreadmask197/32/10494_2.png) [@Dreadmask197](https://forum.makecode.com/u/Dreadmask197)\
**Post date:** [July 14, 2020, 8:39pm UTC](https://forum.makecode.com/t/a-problem/2777/1 "2020-07-14T20:39:55Z")

</div>

> **[Untitled](https://arcade.makecode.com/v1/20514-69990-85064-76931)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![livcheerful](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/livcheerful/32/3509_2.png) [@livcheerful](https://forum.makecode.com/u/livcheerful)\
**Post date:** [July 15, 2020, 12:10am UTC](https://forum.makecode.com/t/a-problem/2777/2 "2020-07-15T00:10:15Z")

</div>

Hi! I think the issue you were talking about during the stream was not being able to drag the text block in CreateTextMessage into “say”, right? It’s because you’re passing in a sprite when you call the function CreateTextMessage. Try putting in a string to say instead!

(lemme know if you have other questions)

---

<div class="post-metadata">

**Author:** ![Dreadmask197](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dreadmask197/32/10494_2.png) [@Dreadmask197](https://forum.makecode.com/u/Dreadmask197)\
**Post date:** [July 15, 2020, 1:32am UTC](https://forum.makecode.com/t/a-problem/2777/3 "2020-07-15T01:32:08Z")

</div>

I’m sorry but I don’t know what that means

---

<div class="post-metadata">

**Author:** ![jwunderl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jwunderl/32/5308_2.png) [@jwunderl](https://forum.makecode.com/u/jwunderl)\
**Post date:** [July 15, 2020, 4:16am UTC](https://forum.makecode.com/t/a-problem/2777/4 "2020-07-15T04:16:48Z")

</div>

When we created the function, you clicked on the one with the red arrow, and we clicked the one with the blue arrow:

 ![clicked-btn](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/b/bab3cf5ea1c7056b59a7f1749f64e3c36476df33.png)

The red arrow means the thing being passed as ‘text’ is a, and can do sprite things; the blue arrow means it’ll accept text, and which can e.g. print to the screen. In this case, we wanted ‘text’, as we were using the courier variable to print the value that is passed to the function, so:

 ![sprite or text](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/b/b86709fd05b3a4fefd9c7ccffc455404682856f8.gif)

@richard; is there anything simple we can do for something like this? There’s no way after a function is created for a user to know if the param is a sprite vs text or number; I can’t think of a way to differentiate them (besides e.g. prefixing with the type or a symbol indicating type). I guess at least we could provide hover text on the parameters in the function creation dialog, so there’s a way for us to instruct people to check?

---

<div class="post-metadata">

**Author:** ![Dreadmask197](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dreadmask197/32/10494_2.png) [@Dreadmask197](https://forum.makecode.com/u/Dreadmask197)\
**Post date:** [July 15, 2020, 12:41pm UTC](https://forum.makecode.com/t/a-problem/2777/5 "2020-07-15T12:41:57Z")

</div>

Thanks for helping me. I’ll be following the video today and join the twitch as well.

---

<div class="post-metadata">

**Author:** ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)\
**Post date:** [July 15, 2020, 4:20pm UTC](https://forum.makecode.com/t/a-problem/2777/6 "2020-07-15T16:20:58Z")

</div>

hover text seems like a good idea, there is also an icon below the parameter in the create dialog that shows the type
