[HELP]LOGIN and Register dialog buged
#2

Sorry for double posting but heres another code i forgot to post
Код:
if(response)
	{
		if(dialogid == 12346 || dialogid == 12347)
		{
		  if(strlen(inputtext))
		  {
				new tmppass[64];
				strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
				//Encrypt(tmppass);
				OnPlayerLogin(playerid,tmppass);
			}
			else
			{
				new loginstring[128];
				new loginname[64];
				GetPlayerName(playerid,loginname,sizeof(loginname));
				format(loginstring,sizeof(loginstring),"WRONG PASSWORD\nPlease enter the correct password:",loginname);
				ShowPlayerDialog(playerid,12347,DIALOG_STYLE_INPUT,"Login",loginstring,"Login","Exit");
				gPlayerLogTries[playerid] += 1;
				if(gPlayerLogTries[playerid] == 5) { Kick(playerid); }
			}
		}


	}
	else
	{
		Kick(playerid);
	}
	return 1;
}
Reply


Messages In This Thread
[HELP]LOGIN and Register dialog buged - by Lilcuete - 09.01.2010, 20:53
Re: [HELP]LOGIN and Register dialog buged - by Lilcuete - 09.01.2010, 20:58
Re: [HELP]LOGIN and Register dialog buged - by Lilcuete - 09.01.2010, 21:24
Re: [HELP]LOGIN and Register dialog buged - by Lilcuete - 09.01.2010, 22:18
Re: [HELP]LOGIN and Register dialog buged - by Lilcuete - 09.01.2010, 23:27
Re: [HELP]LOGIN and Register dialog buged - by KnooL - 09.01.2010, 23:28
Re: [HELP]LOGIN and Register dialog buged - by patchkinson - 09.01.2010, 23:29
Re: [HELP]LOGIN and Register dialog buged - by Lilcuete - 09.01.2010, 23:31
Re: [HELP]LOGIN and Register dialog buged - by patchkinson - 09.01.2010, 23:33
Re: [HELP]LOGIN and Register dialog buged - by KnooL - 09.01.2010, 23:35

Forum Jump:


Users browsing this thread: 5 Guest(s)