strcmp not working. Y_INI Saved Pass.
#4

I'll assume it doesn't load the password correctly and it's empty so strcmp returns 0 (that they're same).

Debug it:
pawn Код:
printf("PlayerInfo[playerid][Pass]: \"%s\" & password: \"%s\"", PlayerInfo[playerid][Pass], password);
if(strcmp(PlayerInfo[playerid][Pass], password, true, sizeof(password)) == 0)
Reply


Messages In This Thread
strcmp not working. Y_INI Saved Pass. - by Ahmad45123 - 25.06.2014, 14:02
Re: strcmp not working. Y_INI Saved Pass. - by BroZeus - 25.06.2014, 14:24
Re: strcmp not working. Y_INI Saved Pass. - by Ahmad45123 - 25.06.2014, 14:51
Re: strcmp not working. Y_INI Saved Pass. - by Konstantinos - 25.06.2014, 14:54
Re: strcmp not working. Y_INI Saved Pass. - by Dziugsas - 25.06.2014, 14:55
Re: strcmp not working. Y_INI Saved Pass. - by Ahmad45123 - 25.06.2014, 14:56
Re: strcmp not working. Y_INI Saved Pass. - by Ahmad45123 - 25.06.2014, 15:19
Re: strcmp not working. Y_INI Saved Pass. - by Konstantinos - 25.06.2014, 15:38
Re: strcmp not working. Y_INI Saved Pass. - by Ahmad45123 - 25.06.2014, 15:47
Re: strcmp not working. Y_INI Saved Pass. - by Konstantinos - 25.06.2014, 15:51

Forum Jump:


Users browsing this thread: 2 Guest(s)