So basically the issues is that it doesn't register the user input like it should per ex: I enter the right password and username, and it still does the while loop and Int Tries doesn't go up after every int Tries.
PS: int Cooldown doesn't have any purpose yet, the code is not finished
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main() {
char user[] = "";
char password[] = "";
bool ifnotcorrect;
int Tries = 0;
int Cooldown;
printf("Enter UserName: ");
scanf("%s", &user);
printf("Enter Password: ");
scanf("%s", &password);
if (user == "Vaxaop" || password == "1234") {
ifnotcorrect = false;
printf("loggin you in...(the code is finished lol)");
}
if (user != "Vaxaop" || password != "1234")
;
{
printf(
"Wrong usernamer or password try again! Tries: %d. Warning After 3 "
"tries There is a cooldown of 60s \n",
Tries++);
while (ifnotcorrect = true) {
printf("Enter UserName: ");
scanf("%s", &user);
printf("Enter Password: ");
scanf("%s", &password);
if (user == "Vaxaop" || password == "1234") {
ifnotcorrect = false;
printf("loggin you in...(the code is finished lol)");
}
}
}
return 0;
}