•      Sign In
• Create Account

### #ActualYoubar

Posted 15 October 2012 - 11:00 PM

Spoiler

Nvm

### #4Youbar

Posted 15 October 2012 - 10:57 PM

Spoiler

Nvm

### #3Youbar

Posted 15 October 2012 - 10:56 PM

Ah thanks, number isn't reset! That solved the problem! Thanks for pointing that out.

Well, now I'm trying to create a movement script for an ingame character:
prev = map[x][y];
cout << "Where would you like to go?" << endl;
cin >> input;
if (input == 8)
{
y--;
x, y == 2;
prev == 0;
goto map;
mapn = 0;
mapn2 = 0;
number = 0;
number2 = 0;
}


But it seems to just automatically skip the loop again, despite it being reset...
Is there a way to fix this?

Sorry, but I'm just really new to C++ so my code probably looks extremely bad.

### #2Youbar

Posted 15 October 2012 - 10:52 PM

Ah thanks, number isn't reset! That solved the problem! Thanks for pointing that out.

Well, now I'm trying to create a movement script for an ingame character:
prev = map[x][y];
cout << "Where would you like to go?" << endl;
cin >> input;
if (input == 8)
{
y--;
x, y == 2;
prev == 0;
goto map;
mapn = 0;
mapn2 = 0;
number = 0;
number2 = 0;
}


But it seems to just automatically skip the loop again, despite it being reset...
Is there a way to fix this?

Sorry, but I'm just really new to C++ so my code probably looks extremely bad.

### #1Youbar

Posted 15 October 2012 - 10:36 PM

Ah thanks, number isn't reset! That solved the problem! Thanks for pointing that out.

PARTNERS