if i press 1, 2, or even 3....
it will say
"What would you like to do?
1. Sleep
3. Leave
You Rest
(Then runs function level up)"
then i press 1,2, or 3...
it will say the same thing
Expand|Select|Wrap|Line Numbers
- bool RentRoom()
- {
- cout<<"What would you like to do?\n";
- cout<<"1. Sleep\n";
- cout<<"2. Leave\n";
- int InnOption3;
- cin >> InnOption3;
- cin.ignore(20,'\n');
- //Problem Here
- if (InnOption3 = 1)
- {
- cout<<"You Rest\n";
- LevelUp();
- RentRoomtoRentRoom();
- }
- if (InnOption3 = 2)
- {
- cout<<"You leave the Inn and enter Imperial City\n";
- cin.get();
- ImperialCityOptions();
- }
- }
- bool RentRoomtoRentRoom()
- {
- RentRoom();
- }