SA-MP Forums Archive
Last Login - 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)
+--- Thread: Last Login (/showthread.php?tid=308906)



Last Login - gabriel19 - 05.01.2012

Hello I have a problem with last login --> http://uploadimage.ro/images/78617026561596095259.png How can I solve?
Код:
public OnPlayerRequestClass(playerid, classid)
{
	if (RegistrationStep[playerid] == 0 && gPlayerLogged[playerid] != 1)
	{
		if (gPlayerAccount[playerid] != 0)
		{
			gPlayerAccount[playerid] = 1;
			new loginstring[500];
			new loginname[64];
			GetPlayerName(playerid,loginname,sizeof(loginname));
			new lastlogin[64];
			lastlogin = PlayerInfo[playerid][pLastLogin];
			format(loginstring,sizeof(loginstring),"{BECBFC}Welcome back, {95A3FF}%s{BECBFC}!\n\nPlease enter your password below to login to your account. \n\n{FFFFFF}* Last Login: %s *",loginname,PlayerInfo[playerid][pLastLogin]);
			ShowPlayerDialog(playerid,12346,DIALOG_STYLE_INPUT,"Login",loginstring,"Login","Exit");
		}
		else
		{
			gPlayerAccount[playerid] = 0;
			new regstring[256];
			new regname[64];
			GetPlayerName(playerid,regname,sizeof(regname));
			format(regstring,sizeof(regstring),"{BECBFC}Welcome, {95A3FF}%s{BECBFC}! \n\nThis name is not registered so please register with entering a password below.\n\n{C11B17}You should choose a strong password, between 6 and 32 characters.",regname);
			ShowPlayerDialog(playerid,12345,DIALOG_STYLE_INPUT,"Register",regstring,"Register","Exit");
		}

   		SetPlayerCameraPos(playerid, 1230.90, -1287.72, 254.17);

	}
	return 1;
}



Re: Last Login - gabriel19 - 05.01.2012

up! can someone help me?


Re: Last Login - gabriel19 - 05.01.2012

damn no one help me?