# Help with continuing to the next function.

• 04-25-2002
loopy
Help with continuing to the next function.
Hello, i'm writing a simple text rpg and iv'e ran into a problem.
Code:

```int main() {   int i;   printf("Please make your selection\n");   printf("1.skate high park\n");   printf("2.skate the beach\n");   printf("3. get the hell out of this wannabe text skate game\n");   scanf("%d", &i);   if (i==1)   printf("Let's skate to high park\n");   else if (i==2)   printf("Let's skate to the beach, i think outerworld is open too\n");   else   printf("under construction\n");   {     curb();   }   return 0; }```
The problem is i don't know how to continue on to the next function, it just end's. I'm sure most will agree that there's alot wrong with what you see above, but this is just for learning.
Any help will be most appreaciated.
• 04-25-2002
loopy
we'll actually
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.
• 04-25-2002
loopy
I got it.
Thank's for the help vVv.