- Joined
- Jun 10, 2008
- Messages
- 117
- Reaction score
- 0
so in order to make it go back to the beginning i wil have to use goto even though it isn't recommended?
so in order to make it go back to the beginning i wil have to use goto even though it isn't recommended?
Then you're obviously doing it wrong.. are you sure your conditions are correct? Look for information on for/while loops and how to apply them on the net.right but none of those work without the application closing.
I can't point out your error without seeing your current code.@Negeta Then can you show me how i can make it work?
cout << "Please enter your username and password" << endl;
cout << "The program will hide in order to securely keep your password safe" << endl;
cout << "DO NOT CLICK ANYTHING WHEN APPLICATION HIDES IN ORDER TO MAKE THIS WORK" << endl;
cin >> username;
HWND hWnd = GetConsoleWindow();
ShowWindow( hWnd, SW_HIDE );
cin >> password;
system("cls");
hWnd = GetConsoleWindow();
ShowWindow( hWnd, SW_SHOW );
if(username == "alexz003" || username == "nonoowns", password == "xxxxxxxx")
{
system("cls");
MessageBox(0,"Login Correct!","Login", 0);
cout << "Applications or Games?" << endl;
cin >> choice;
system("cls");
if(choice == "Games")
{
cout << "Please type out the name of the game you wish to play:" << endl;
cout << "1) Redstone" << endl;
cout << "2) Wolfteam" << endl;
cout << "3) Runescape" << endl;
cout << "4) YourFunCo" << endl;
cout << "5) Conquer" << endl;
cout << "6) Sims" << endl;
cin >> gamename;
if (gamename == "Redstone")
{
system("cls");
WinExec("C:\\Program Files\\Red Stone\\Launcher.exe",SW_SHOWNORMAL);
cout << "w00t" << endl;
system("pause");
}
else if (gamename == "Wolfteam")
{
system("cls");
WinExec("C:\\Program Files\\SoftNyx\\Wolfteam\\NyxLauncher.exe",SW_SHOWNORMAL);
cout << "w00t" << endl;
system("pause");
}
else if (gamename == "Runescape")
{
system("cls");
WinExec("C:\\Program Files\\SwiftKit\\SwiftKit.exe",SW_SHOWNORMAL);
cout << "w00t" << endl;
system("pause");
}
else if (gamename == "YourFunCo")
{
system("cls");
WinExec("C:\\Program Files\\YourFunCo\\YourFunCo.exe",SW_SHOWNORMAL);
cout << "w00t" << endl;
system("pause");
}
else if (gamename == "Conquer")
{
system("cls");
WinExec("C:\\Program Files\\Conquer 2.0\\Conquer.exe",SW_SHOWNORMAL);
cout << "w00t" << endl;
system("pause");
}
else if (gamename == "Sims")
{
WinExec("C:\\Program Files\\Electronic Arts\\The Sims 3\\Game\\Bin\\Sims3Launcher.exe", SW_SHOWNORMAL);
cout << "w00t" << endl;
system("pause");
}
}
}
while (username != "alexz003" || username != "nonoowns", password != "xxxxxxxx")
{
cout << "Please enter your username and password" << endl;
cout << "The program will hide in order to securely keep your password safe" << endl;
cout << "DO NOT CLICK ANYTHING WHEN APPLICATION HIDES IN ORDER TO MAKE THIS WORK" << endl;
cin >> username;
HWND hWnd = GetConsoleWindow();
ShowWindow( hWnd, SW_HIDE );
cin >> password;
system("cls");
hWnd = GetConsoleWindow();
ShowWindow( hWnd, SW_SHOW );
}
if(username == "alexz003" || username == "nonoowns", password == "xxxxxxxx")
{
system("cls");
MessageBox(0,"Login Correct!","Login", 0);
cout << "Applications or Games?" << endl;
cin >> choice;
system("cls");
if(choice == "Games")
{
cout << "Please type out the name of the game you wish to play:" << endl;
cout << "1) Redstone" << endl;
cout << "2) Wolfteam" << endl;
cout << "3) Runescape" << endl;
cout << "4) YourFunCo" << endl;
cout << "5) Conquer" << endl;
cout << "6) Sims" << endl;
cin >> gamename;
if (gamename == "Redstone")
{
system("cls");
WinExec("C:\\Program Files\\Red Stone\\Launcher.exe",SW_SHOWNORMAL);
cout << "w00t" << endl;
system("pause");
}
else if (gamename == "Wolfteam")
{
system("cls");
WinExec("C:\\Program Files\\SoftNyx\\Wolfteam\\NyxLauncher.exe",SW_SHOWNORMAL);
cout << "w00t" << endl;
system("pause");
}
else if (gamename == "Runescape")
{
system("cls");
WinExec("C:\\Program Files\\SwiftKit\\SwiftKit.exe",SW_SHOWNORMAL);
cout << "w00t" << endl;
system("pause");
}
else if (gamename == "YourFunCo")
{
system("cls");
WinExec("C:\\Program Files\\YourFunCo\\YourFunCo.exe",SW_SHOWNORMAL);
cout << "w00t" << endl;
system("pause");
}
else if (gamename == "Conquer")
{
system("cls");
WinExec("C:\\Program Files\\Conquer 2.0\\Conquer.exe",SW_SHOWNORMAL);
cout << "w00t" << endl;
system("pause");
}
else if (gamename == "Sims")
{
WinExec("C:\\Program Files\\Electronic Arts\\The Sims 3\\Game\\Bin\\Sims3Launcher.exe", SW_SHOWNORMAL);
cout << "w00t" << endl;
system("pause");
}
}
}