That give's me an idea on how to close it when the user input's anything but 1 and 2. But what i have *done* is created a function for different trick's and getting input for those trick's
Code:
int curb()
{
int a, b;
printf("Were coming up to a waxed curb, what do you want to do, make it fast\n");
printf("1. do an olie over it, yuk\n");
printf("2. do a flip kick onto it, better\n");
printf("3. do a big jump over it\n");
printf("4. do a switch onto it\n");
scanf("%d", &a);
if ( a == 1 )
b = OLIE;
else if (a == 2)
b = FLIP_KICK;
else if (a == 3)
b = BIG_JUMP;
else if ( a == 4)
b = SWITCH;
printf("%d", b);
printf(" point's\n");
return a;
}
Like do this and get so many point's, and soon i want to do like experience level's and some way to sometime's make the user fall
stuff like that. My problem is i get to curb(); in the code in the first post and then it just end's. I know you can't have two BEGINS in a row, what do i put to get to the next function?
If you understand my i take my hat off to you.
thank's.