Detaljan opis problema😛a igrac moze da se uloguje iako pogresi password.
Dio skripte: Evo ovaj kod sto mi proverava
if(!strcmp(inputtext, PlayerInfo, false))Neke slike/video za lakse dobivanje pomoci(neobavezno)://
if(!strcmp(inputtext, PlayerInfo, false))switch(dialogid)
{
case DIALOG_REGISTER:
{
if(!response) return Kick(playerid);
if(response)
{
if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, "{0435FB}Registracija","{FFFFFF}Ukucali ste {FF0000}pogresnu {FFFFFF}lozinku.\n{FFFFFF}Ukucajte {FF0000}ispravnu {FFFFFF}lozinku da bi se registrovali.","Registruj se","Izadji");
ShowPlayerDialog(playerid, DIALOG_GODINE, DIALOG_STYLE_LIST, "Izaberi Godine", "13 \n14 \n15", "Izaberi", "Odustani");
new name; GetPlayerName(playerid, name, sizeof(name));
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteString(File, "Ime", name);
INI_WriteString(File,"Lozinka", inputtext);
INI_WriteInt(File, "Kaznjen", 0);
INI_WriteInt(File, "Level", 1);
INI_WriteInt(File, "Respecti", 0);
INI_WriteInt(File, "Donator", 0);
INI_WriteInt(File, "Admin", 0);
INI_WriteInt(File, "Helper", 0);
INI_WriteInt(File, "Telefon", 0);
INI_WriteInt(File, "Warned", 0);
INI_WriteInt(File, "Muted", 0);
INI_WriteInt(File, "Jailed", 0);
INI_WriteInt(File, "SatiIgranja", 0);
INI_WriteInt(File, "Plata", 0);
INI_WriteInt(File, "Dzep", GetPlayerMoney(playerid));
INI_WriteInt(File, "Banka", 0);
INI_WriteInt(File, "Godine", 0);
INI_WriteInt(File, "Pol", 0);
INI_WriteInt(File, "Drzava", 0);
INI_WriteInt(File, "Brak", 0);
INI_WriteInt(File, "Posao", 0);
INI_WriteInt(File, "Lider", 0);
INI_WriteInt(File, "Member", 0);
INI_WriteInt(File, "Rank", 0);
INI_WriteInt(File, "Orgskin", 0);
INI_WriteInt(File, "Skin", PlayerInfo = 26);
INI_WriteInt(File, "Rprank", 0);
INI_WriteInt(File, "Ubistva", 0);
INI_WriteInt(File, "Smrti", 0);
INI_WriteInt(File, "Zlocini", 0);
INI_WriteInt(File, "Droga", 0);
INI_WriteInt(File, "Mats", 0);
INI_WriteInt(File, "Lotto", 0);
INI_WriteInt(File, "TeleKredit", 0);
INI_WriteInt(File, "KljucKuce", 0);
INI_WriteInt(File, "Firma", 255);
INI_WriteInt(File, "Veh1", 999);
INI_WriteInt(File, "Veh2", 999);
INI_WriteInt(File, "Veh3", 999);
INI_Close(File);
SetSpawnInfo(playerid, NO_TEAM, 26,1613.4861,-2330.1577,13.5469,90.0980,0,0,0,0,0,0);
PlayerInfo = 26;
SpawnPlayer(playerid);
GivePlayerMoney(playerid, 20000);
SetPlayerScore(playerid, PlayerInfo);
SetPlayerSkin(playerid, PlayerInfo);
}
}
case DIALOG_LOGIN:
{
if(!response) return Kick(playerid);
if(response)
{
if(inputtext == PlayerInfo)
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
SetSpawnInfo(playerid, NO_TEAM, 35,1613.4861,-2330.1577,13.5469,90.0980,0,0,0,0,0,0);
SpawnPlayer(playerid);
GivePlayerMoney(playerid, PlayerInfo);
SetPlayerScore(playerid, PlayerInfo);
}
else
{
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,"{0435FB}Prijavljivanje","{FF0000}Ukucali ste pogresnu lozinku.\n{FFFFFF}Ukucajte ispravnu lozinku da bi se ulogovali.","Prijavi se","Izadji");
}
return 1;
}
}
}
return 1;Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava