14.11.2014, 16:49
I put the correct pass but still it throws the error, why?
Code:
case DIALOG_LOGIN:
{
if (!response) return Kick ( playerid );
if(response)
{
if(strcmp(inputtext, PlayerInfo[playerid][pPass], false))
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
GivePlayerMoneyEx(playerid, PlayerInfo[playerid][pCash]);
welcome(playerid);
NewMoney[playerid] = GetPlayerMoney(playerid);
PlayerInfo[playerid][pLogged] = 1;
ForceClassSelection(playerid);
TogglePlayerSpectating(playerid, true);
TogglePlayerSpectating(playerid, false);
}
else
{
slowkick(playerid, "Invalid password");
PlayerInfo[playerid][pLogged] = 0;
}
return 1;
}
}


