SkipRequestClass(playerid) Problem
#3

Thanx for the reply although that does not solve the problem, see the problem is this...
Код:
case(DIALOG_LOGIN):
{
	if(!response)
	{
		Kick(playerid);
	}
	else if(response)
	{
		new hashpass[129];
		WP_Hash(hashpass, sizeof(hashpass), inputtext);
		if(!strcmp(hashpass, PlayerInfo[playerid][Password]))
		{
			SendClientMessage(playerid, 0x00FF00FF,"You have succesfully logged in.\nWelcome back to a Bum's Life!");
			SkipRequestClass(playerid); // This Line Does Not Execute So The Player Does Not Spawn After Logging In.
		}
		else
		{
			ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,"Login","{FF0000}You have entered an Incorrect password!\n{FFFFFF}Please enter your Correct password to login.","Login","Quit");
			return 1;
		}
		return 1;
	}
	return 1;
}
And here is the SkipRequestClass(playerid) Code...
Код:
forward SkipRequestClass(playerid);
public SkipRequestClass(playerid)
{
	new PlayerName[MAX_PLAYER_NAME];
	GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
	Load_Info(playerid);
	SpawnPlayer(playerid);
	return 1;
}
Reply


Messages In This Thread
SkipRequestClass(playerid) Problem - by Hyperfire - 25.02.2013, 13:55
Re: SkipRequestClass(playerid) Problem - by TrueForYourSelf - 25.02.2013, 14:43
Re: SkipRequestClass(playerid) Problem - by Hyperfire - 25.02.2013, 18:41

Forum Jump:


Users browsing this thread: 2 Guest(s)