Last Login
#1

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;
}
Reply
#2

up! can someone help me?
Reply
#3

damn no one help me?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)