PlayerName
#8

Thanks,you're the best..

All is Ok..but I have problem with login dialog..Is Ok..when I register on the server shows to me to login,and when I quit the game and I enter the server the login box does not appare..But my .ini file is saved in scriptfile

I use that:

Код:
if (RegistrationStep[playerid] == 0 && gPlayerLogged[playerid] == 1)
	{
		if (gPlayerAccount[playerid] == 1)
		{
			new loginstring[128];
			new loginname[64];
			GetPlayerName(playerid,loginname,sizeof(loginname));
			format(loginstring,sizeof(loginstring),"{FFFFFF}» Bine ai venit, {FFAF00}%s\n» {FFFFFF}Acest nume este inregistrat.\n» Poti sa te loghezi:",loginname);
			ShowPlayerDialog(playerid,12346,DIALOG_STYLE_INPUT,"Login",loginstring,"Login","Exit");
		}
		else
		{
			gPlayerAccount[playerid] = 0;
 			new regstring[128];
			new regname[64];
			GetPlayerName(playerid,regname,sizeof(regname));
			format(regstring,sizeof(regstring),"{FFFFFF}» Bun benit, {FFAF00}%s\n» {FFFFFF}Nu ai cont.\n» Te rog sa te inregistrezi:",regname);
			ShowPlayerDialog(playerid,12345,DIALOG_STYLE_INPUT,"Register",regstring,"Register","Exit");
			RegistrationStep[playerid] = 1;
			gPlayerAccount[playerid] = 1;
		}
	}
This is positioned at the begin of OnPlayerRequestClass..
Reply


Messages In This Thread
PlayerName - by .EnjatsRed. - 23.06.2012, 16:22
Re: PlayerName - by justinnater - 23.06.2012, 17:45
Re: PlayerName - by .EnjatsRed. - 23.06.2012, 17:52
Re: PlayerName - by .FuneraL. - 23.06.2012, 17:56
Re: PlayerName - by .EnjatsRed. - 23.06.2012, 18:24
Re: PlayerName - by .EnjatsRed. - 24.06.2012, 10:41
Re: PlayerName - by Grand_Micha - 24.06.2012, 10:47
Re: PlayerName - by .EnjatsRed. - 24.06.2012, 12:38

Forum Jump:


Users browsing this thread: 1 Guest(s)