why is my code not working :/

J

Jellybean Studios!

Guest
im very confused on to why my code i wrote is not working. o_O

heres the code

if ((obj_player.x > bbox_left-22) && (obj_player.x < bbox_right+22)
&& (obj_player.y > bbox_top) && (obj_player.y < bbox_bottom+24)
&& (canpress == 1))
{
canpress = 0;
alarm[0] = 30;
// Two different ways to make simple comments - either use the one-parameter scr_TextBox,
// or else use scr_QuestionBox and leave the last three parameters blank.
//scr_TextBox(message);
spr_QuestionBox(message,"f","f","f");
}


the line thats not working is

spr_QuestionBox(message,"f","f","f");
}
 
L

Lonewolff

Guest
Probably because there is no function (or script) called spr_QuestionBox.

What is the exact error you receive?
 
J

Jellybean Studios!

Guest
Probably because there is no function (or script) called spr_QuestionBox.

What is the exact error you receive?
]


___________________________________________
FATAL ERROR in
action number 1
of Key Release Event for <Shift> Key
for object NPC_turtle:

COMPILATION ERROR in code action
Error in code at line 10:
spr_QuestionBox(message,"f","f","f");
^
at position 6: Unknown function or script: spr_QuestionBox


that is the error i receive
 
W

wkaudio

Guest
]


___________________________________________
FATAL ERROR in
action number 1
of Key Release Event for <Shift> Key
for object NPC_turtle:

COMPILATION ERROR in code action
Error in code at line 10:
spr_QuestionBox(message,"f","f","f");
^
at position 6: Unknown function or script: spr_QuestionBox


that is the error i receive
did you misspell scr_QuestionBox as spr_QuestionBox?
 
Top