[Pomoc] Pogresna lozinka


Započeo Mladen Smiljan, Januar 29, 2012, 00:33:17 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:>><<
Detaljan opis problema: Ovako napravio sam nes kad pogrijesi lozinku da ga kick, ali kad ga kick u INI file mi zapise score 1, a ne koji je bio.. Pokusa sam sa spwanplayer i sve ali nece, ako ima ko ideju Hvala!!0
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):
Trenutni projekt: NightLife Roleplay

Bizz System 40%
House System 70%
Car Ownership 20%
Log/reg System 100%
Poslovi 20%
Anticheat 0%
Organizacije 50%
Event System 0%
Komande 20%

Dio skripte : ?
daj taj dio sta si radio pa cemo srediti..

case 1:
        {
            if ( !response ) return Kick ( playerid );
            if( response )
            {
                if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
                {
                    INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
                }
                else
                {
                    SetPlayerSkin(playerid,PlayerInfo[playerid][pSkin]);
					SetPlayerScore(playerid,PlayerInfo[playerid][pScore]);
					SendClientMessage(playerid, CRVENA, "Izbaceni ste");
					SendClientMessage(playerid, CRVENA, "{FFFFFF}Razlog: Pogresna Lozinka!");
					SaveAccountInfo(playerid);
               	 	Kick(playerid);
                }
                return 1;
            }
        }


Izvolite
Trenutni projekt: NightLife Roleplay

Bizz System 40%
House System 70%
Car Ownership 20%
Log/reg System 100%
Poslovi 20%
Anticheat 0%
Organizacije 50%
Event System 0%
Komande 20%

Sorry na DP moze li mi ko to reci vazno je hvala!
Znaci poslije Pogresne lozinke mene Kick i Postavi mi lvl na 1
Trenutni projekt: NightLife Roleplay

Bizz System 40%
House System 70%
Car Ownership 20%
Log/reg System 100%
Poslovi 20%
Anticheat 0%
Organizacije 50%
Event System 0%
Komande 20%

Izbaciš "SaveAccountInfo(playerid);"
"I'm a loser and a user so I don't need no accuser" - Billie Joe Armstrong

Izbacio ali sad ne sprema ni skin ni score :D i makno sam setplayerskin i setplayerscore
Trenutni projekt: NightLife Roleplay

Bizz System 40%
House System 70%
Car Ownership 20%
Log/reg System 100%
Poslovi 20%
Anticheat 0%
Organizacije 50%
Event System 0%
Komande 20%

K4[Я]!K3

*

'Respect cannot be learned, it can only be earned.'

NemožeÅ¡ prvo provjerit lozinku pa učitat korisnički račun  :LOL

Kako to mislis?
Poslednja Izmena: Januar 31, 2012, 17:32:13 POSLE PODNE od Mladen Smiljan
Trenutni projekt: NightLife Roleplay

Bizz System 40%
House System 70%
Car Ownership 20%
Log/reg System 100%
Poslovi 20%
Anticheat 0%
Organizacije 50%
Event System 0%
Komande 20%

K4[Я]!K3

*

'Respect cannot be learned, it can only be earned.'

if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
                {
                    INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
                }

pogledaš ovaj kod i vidit ćeš da prvo imaš provjeru lozinke pa tek onda učitavanje korisničkog računa..(ParseFile)