15.11.2014, 09:41
Why does it think 12 is a good password while my pass is 123?
Код:
case DIALOG_LOGIN: { if (!response) return Kick(playerid); if(response) { new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); if(!strcmp(inputtext, PlayerInfo[playerid][pPass], false)) { INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid); GivePlayerMoneyEx(playerid, PlayerInfo[playerid][pCash]); new plrIP[16]; GetPlayerIp(playerid, plrIP, sizeof(plrIP)); welcome(playerid); NewMoney[playerid] = GetPlayerMoney(playerid); PlayerInfo[playerid][pLogged] = 1; ForceClassSelection(playerid); TogglePlayerSpectating(playerid, true); TogglePlayerSpectating(playerid, false); printf("%s logged in with IP: %s", name, plrIP); } else { slowkick(playerid, "Invalid password"); PlayerInfo[playerid][pLogged] = 0; } return 1; } }