Help STRCMP
#7

I've Added Those Colored in RED
Код:
	if(dialogid == DIALOG_LOGIN && response == 1)
	{
	    new file[256], pname[MAX_PLAYER_NAME];
	  	//new pass[256];
		GetPlayerName(playerid, pname, sizeof(pname));
	    format(file, sizeof(file), "Accounts/%.txt", pname);
		//pass = dini_Get(file, "Password");
		if(isnull(inputtext))
    	{
            ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, "Login Information", "Please Enter Your Password, No Password Has Entered", "Enter", "Quit");
   	    	return 0;
    	}
		if(strcmp(inputtext, dini_Get(file, "Password"), false) !=0) return 1;
		new str3[180];
		format(str3, sizeof(str3), "Your Password Is %s", dini_Get(file, "Password"));
		printf(str3);
		format(str3, sizeof(str3), "INPUTTEXT Is %s", inputtext);
		printf(str3);
And I got those lines on command line
https://imgur.com/iYRNHbn
my password stored in file is 32363236
inputtext is 322
and its login without showing any errors
please help
Reply


Messages In This Thread
Help STRCMP - by Osamakurdi - 26.01.2018, 16:43
Re: Help STRCMP - by Osamakurdi - 26.01.2018, 17:12
Re: Help STRCMP - by ThePhenix - 26.01.2018, 17:23
Re: Help STRCMP - by DobbysGamertag - 26.01.2018, 17:27
Re: Help STRCMP - by Osamakurdi - 26.01.2018, 17:28
Re: Help STRCMP - by ThePhenix - 26.01.2018, 17:31
Re: Help STRCMP - by Osamakurdi - 26.01.2018, 17:36
Re: Help STRCMP - by Osamakurdi - 26.01.2018, 17:45

Forum Jump:


Users browsing this thread: 1 Guest(s)