Show name!
#1

Hey guys I was trying to learn Login and register system of samp and i was wondering how can I add the user name in the login/register dialog... for example,
Welcome Crackerz! Please login below...


My dialog code :

Код HTML:
public OnPlayerConnect(playerid)
{
	if(fexist(UserPath(playerid)))
	{
		INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
  		ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_WHITE"Welcome to Pak Gaming Roleplay, Please login below to start wih your account!","Login","Quit");
	}
	else
	{
 		ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COL_WHITE"Registering...",""COL_WHITE"Type your password below to register a new account.","Register","Quit");
	}
	return 1;
}
Reply


Messages In This Thread
Show name! - by Crackerz - 17.07.2017, 21:16
Re: Show name! - by Paulice - 17.07.2017, 21:20
Re: Show name! - by Crackerz - 17.07.2017, 21:21
Re: Show name! - by Paulice - 17.07.2017, 21:26
Re: Show name! - by RedRex - 17.07.2017, 21:26
Re: Show name! - by Crackerz - 17.07.2017, 21:29
Re: Show name! - by Paulice - 17.07.2017, 22:22

Forum Jump:


Users browsing this thread: 1 Guest(s)