[Pomoc] Prektratka lozinka

Započeo FalconyAS, Avgust 27, 2013, 10:18:42 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: moja od 0
Detaljan opis problema: Pa kad igrač napiše lozinku primjer "a" njemu to prihvati
Jel mi može neko dat kod kako da napravim,da kad napiše "a" il " "
da mu izbaci da mu je to prekratko...
Samo mi taj kod treba ostalo je lako :D
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):
[TuT]-Vozila na posebnog igrača- http://balkan-samp.com/forum/index.php?topic=78806.0 | [FS]-G.P.S- http://balkan-samp.com/forum/index.php?topic=73768.0
[FS]-Rcon Panel- http://balkan-samp.com/forum/index.php?topic=72595.0 | [GM]-Division Street(stari)- http://balkan-samp.com/forum/index.php?topic=78810.0
Citat: magarac poslato Avgust 28, 2013, 18:58:01 POSLE PODNE
Ma jbt ne zelim ja to...... koji k ce mi takva camera di trci okolo......

<script type="text/javascript">
var bannersnack_embed = {"hash":"bxui659h2","width":400,"height":130,"t":1421676936,"userId":16712396,"bgcolor":"#3D3D3D","wmode":"opaque"};
</script>
<script type="text/javascript" src="http://files.bannersnack.com/iframe/embed.js"></script>

if(dialogid == DIALOG_REGISTER)
{
if (!response) return SetTimerEx("KickRegLog",10,0,"d",playerid);
if(response)
{
if(strlen(inputtext) > 1 && strlen(inputtext) <= 35)
if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "Registracija.","Unijeli ste pogresnu lozinku\nnapisi tocnu lozinku kako bi nastavio igru!\nLozinka:","Register","Quit");
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteString(File, "Lozinka", inputtext);
INI_Close(File);
format(string,sizeof(string), "{FF0000}[FalconyAS]{CCCCCC}Igrac %s se registrirao,zazeli mu dobrodoslicu!", PlayerName(playerid));
SendClientMessageToAll(-1,string);
SpawnPlayer(playerid);
IgracLogiran[playerid] = 1;
}
}



evo dodao sam ovako i neće
Moš mi ti to sredit,kako da napravim stvarno sam izludio
[TuT]-Vozila na posebnog igrača- http://balkan-samp.com/forum/index.php?topic=78806.0 | [FS]-G.P.S- http://balkan-samp.com/forum/index.php?topic=73768.0
[FS]-Rcon Panel- http://balkan-samp.com/forum/index.php?topic=72595.0 | [GM]-Division Street(stari)- http://balkan-samp.com/forum/index.php?topic=78810.0
Citat: magarac poslato Avgust 28, 2013, 18:58:01 POSLE PODNE
Ma jbt ne zelim ja to...... koji k ce mi takva camera di trci okolo......

<script type="text/javascript">
var bannersnack_embed = {"hash":"bxui659h2","width":400,"height":130,"t":1421676936,"userId":16712396,"bgcolor":"#3D3D3D","wmode":"opaque"};
</script>
<script type="text/javascript" src="http://files.bannersnack.com/iframe/embed.js"></script>


if(strlen(inputtext))
{
new duz = strval(inputtext);
if(duz > 30 || duz < 5) return SendClientMessage(playerid, BELA, "Lozinka ne moze biti manja od 5 slova i veca od 30.");
}



Koristi taj kod..

if(dialogid == DIALOG_REGISTER)
{
if (!response) return SetTimerEx("KickRegLog",10,0,"d",playerid);
if(strlen(inputtext))
{
new duz = strval(inputtext);
if(duz > 30 || duz < 5) return SendClientMessage(playerid,-1, "Lozinka ne moze biti manja od 5 slova i veca od 30.");
if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "Registracija.","Unijeli ste pogresnu lozinku\nnapisi tocnu lozinku kako bi nastavio igru!\nLozinka:","Register","Quit");
}
if(response)
{
new duz = strval(inputtext);
if(duz > 30 || duz < 5) return SendClientMessage(playerid,-1, "Lozinka ne moze biti manja od 5 slova i veca od 30.");
if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "Registracija.","Unijeli ste pogresnu lozinku\nnapisi tocnu lozinku kako bi nastavio igru!\nLozinka:","Register","Quit");
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteString(File, "Lozinka", inputtext);
INI_Close(File);
format(string,sizeof(string), "{FF0000}[FalconyAS]{CCCCCC}Igrac %s se registrirao,zazeli mu dobrodoslicu!", PlayerName(playerid));
SendClientMessageToAll(-1,string);
SpawnPlayer(playerid);
IgracLogiran[playerid] = 1;
}
}


Evo ovako sam stavio i neće
Znači upišem lozinku "A"
I izbaci Lozinka ne moze bit...
al me spawna?
Zna neko?
[TuT]-Vozila na posebnog igrača- http://balkan-samp.com/forum/index.php?topic=78806.0 | [FS]-G.P.S- http://balkan-samp.com/forum/index.php?topic=73768.0
[FS]-Rcon Panel- http://balkan-samp.com/forum/index.php?topic=72595.0 | [GM]-Division Street(stari)- http://balkan-samp.com/forum/index.php?topic=78810.0
Citat: magarac poslato Avgust 28, 2013, 18:58:01 POSLE PODNE
Ma jbt ne zelim ja to...... koji k ce mi takva camera di trci okolo......

<script type="text/javascript">
var bannersnack_embed = {"hash":"bxui659h2","width":400,"height":130,"t":1421676936,"userId":16712396,"bgcolor":"#3D3D3D","wmode":"opaque"};
</script>
<script type="text/javascript" src="http://files.bannersnack.com/iframe/embed.js"></script>

Znal netko!!!
[TuT]-Vozila na posebnog igrača- http://balkan-samp.com/forum/index.php?topic=78806.0 | [FS]-G.P.S- http://balkan-samp.com/forum/index.php?topic=73768.0
[FS]-Rcon Panel- http://balkan-samp.com/forum/index.php?topic=72595.0 | [GM]-Division Street(stari)- http://balkan-samp.com/forum/index.php?topic=78810.0
Citat: magarac poslato Avgust 28, 2013, 18:58:01 POSLE PODNE
Ma jbt ne zelim ja to...... koji k ce mi takva camera di trci okolo......

<script type="text/javascript">
var bannersnack_embed = {"hash":"bxui659h2","width":400,"height":130,"t":1421676936,"userId":16712396,"bgcolor":"#3D3D3D","wmode":"opaque"};
</script>
<script type="text/javascript" src="http://files.bannersnack.com/iframe/embed.js"></script>