Hi.
I don't know why this happenes every time i try to make a void, or something like a game round, like i press on an option like start menu, and then it gose to the round., but it just exits. here's the code. btw, I added the show game window there to see if it works but it doesn't. (I'm also using nathantech's menu.
#include "menu.bgt"
void main()
{
click.load("click.ogg");
int r;
show_game_window("I am so cool");
wait(1000);
string text="hi. I am hippy";
string[] items={"Be a nice guy and play ma game for meh"};
r=new_menu(text, items, 0);
install_keyhook();
if(r==1)
{
sm();
}
}
void sm()
{
show_game_window("testingnumber###2000");
if(key_pressed(KEY_UP))
{
speak_wait("bopit.");
click.play();
}
}
it works, but the problem is that it refuses to enter the sm(); round when clicking on r1.
see ya.
Pages 1