[POMOC]Login i sa pogresnim pass-om

Započeo Mikiâ„¢
11. Apr. 2013. Zaključano
901
pregleda
22
postova
Mish26
4
Shot Caller
11. Apr. 2013.
Skripta koju koristim:moja od 0
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)://
Mish26
4
Shot Caller
11. Apr. 2013.
error 033: array must be indexed (variable "inputtext")
ovaj red gde je inputtext
Mish26
4
Shot Caller
11. Apr. 2013.
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;
Mish26
4
Shot Caller
11. Apr. 2013.
Necu da mi bude hasovano. 🙂
STREETBOY
5
Kingpin
11. Apr. 2013.
Daj bre ucite se da koristite trazilicu.
http://balkan-samp.com/forum/index.php?topic=70847.0
Mish26
4
Shot Caller
11. Apr. 2013.
Prvo uporedi moju komandu sto sam dao sa onom koja je tamo pa se onda pravi pametan.
EDIT:Uspeo sam da namestim da ne moze kada pogresi password ali moze kada samo stitsne enter.
Mish26
4
Shot Caller
11. Apr. 2013.
BUMP
Mish26
4
Shot Caller
12. Apr. 2013.
BUMP
Mish26
4
Shot Caller
12. Apr. 2013.
Neko?
Mish26
4
Shot Caller
12. Apr. 2013.
Jel stvarno niko nema pojma o cemu se radi ili ignoriste moje postove 😕?
Mish26
4
Shot Caller
12. Apr. 2013.
BUMP
Amax
4
Shot Caller
12. Apr. 2013.
Izinite Al Nisam Modentator Al Bumapt nesmijes ako neprodje "24" h
Mish26
4
Shot Caller
12. Apr. 2013.
Hvala tebi sto me opominjes, ne ljutim se 🙂 Jednostavno mislim da je 24h predugo pa bumpam kada moja tema nije vise na onom "Nove ne procitane teme" odnosno na pocetnoj. Ako se ljute modovi nek lock pa cu da primenim to pravilo ali do sada nisu. 😄
Mish26
4
Shot Caller
13. Apr. 2013.
bump
Mish26
4
Shot Caller
13. Apr. 2013.
bump

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha