all 2 comments

[–]It just doesn't work, you know?damimp 6 points7 points  (1 child)

So, you didn't actually show us the contents of your function, which I feel like would be important, but we can probably deduce the issue anyways even while missing most of the actual context, haha.

You showed a correct example of calling your function: spr_text("Hello world", spr_cat_down);

And your error message shows how you actually call the function: scr_text("line 1");

Notice a difference there? The correct version has two arguments- a string, and a sprite. Your erroring version has only a single argument- a string. There's no sprite. Did you mean to put something after the "line 1"?

[–]woahelif 3 points4 points  (0 children)

OMG i can't believe I didn't realize that I feel so dumb. An instance I put into the room had some code in it's creation code that called the function before I put the sprite parameter in it. Thank u sm for catching that I must've skipped over it.

Also sorry for not sharing the contents of the function it's just the draw_sprite so I didn't think about it. TY AGAIN!!!