SA-MP Forums Archive
Help with Login System... - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help with Login System... (/showthread.php?tid=131550)



Help with Login System... - T Ray - 03.03.2010

Okay I have a BIG Problem with my Roleplay Server.
When someone goes to Login on ANY account they can use ANY password such as just "k".
But, When i look at the Login portion of the Script it looks fine to me...I'm a Moderate Pawno Scripter and might've overlooked something so yea...Heres the Portion.


Код:
	else
		{
			new loginstring[128];
			new loginname[64];
			GetPlayerName(playerid,loginname,sizeof(loginname));
			format(loginstring,sizeof(loginstring),"ERROR: Incorrect passowrd!\n \nPlease enter the correct password:",loginname);
			ShowPlayerDialog(playerid,12347,DIALOG_STYLE_INPUT,"Login",loginstring,"Login","Exit");
	    fclose(UserFile);
	    gPlayerLogTries[playerid] += 1;
	    if(gPlayerLogTries[playerid] == 4) { Kick(playerid); }
	    return 1;
		}



Re: Help with Login System... - T Ray - 03.03.2010

OOOHHH lol i'm stupid...
Thx Seif...


Re: Help with Login System... - SlashPT - 03.03.2010

and btw are you encypting passґs??

i had one problem the passґs dont save and the problem was just because it needed to be encrypted... idk why... lol


Re: Help with Login System... - Keeboo13 - 03.03.2010

i think i know why where did u get ur login system from