DIALOG_BOX -
rapister - 21.10.2012
Hello can some one tell me how i can change my LOGIN [DIALOG_BOX] Size?
i want to make it wide
Pic
Код:
//STOCK FUNCTIONS
stock GetPlayersInTeam(TEAM)
{
new players;
for (new i; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
if (gTeam[i] == TEAM) players++;
}
}
return players;
}
stock ShowLoginScreen(playerid)
{
new string[128];
format(string, sizeof(string), "Welcome back %s\nBefore playing you must login\nEnter your password below and click login",PlayerName(playerid));
ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"Login required",string,"Login","Cancel");
}
stock ShowRegisterScreen(playerid)
{
new string[128];
format(string, sizeof(string), "Welcome to the server %s\nThis server requires you to register an account before playing\nEnter your desired password below then click ok",PlayerName(playerid));
ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Registration required",string,"Register","Cancel");
}
stock ShowChangePassScreen(playerid)
{
new string[128];
format(string, sizeof(string), "Please make sure you enter your new password correctly.\nEnter your desired password below then click ok.",PlayerName(playerid));
ShowPlayerDialog(playerid,DIALOG_CHANGEPASS,DIALOG_STYLE_INPUT,"Enter the new password.",string,"Change","Cancel");
}
Re: DIALOG_BOX -
SwisherSweet - 21.10.2012
Код:
//STOCK FUNCTIONS
stock GetPlayersInTeam(TEAM)
{
new players;
for (new i; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
if (gTeam[i] == TEAM) players++;
}
}
return players;
}
stock ShowLoginScreen(playerid)
{
new string[128];
format(string, sizeof(string), "Welcome back %s, Before playing you must login\nEnter your password below and click login",PlayerName(playerid));
ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"Login required",string,"Login","Cancel");
}
stock ShowRegisterScreen(playerid)
{
new string[128];
format(string, sizeof(string), "Welcome to the server %s, This server requires you to register an account before playing\nEnter your desired password below then click ok",PlayerName(playerid));
ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Registration required",string,"Register","Cancel");
}
stock ShowChangePassScreen(playerid)
{
new string[128];
format(string, sizeof(string), "Please make sure you enter your new password correctly.\nEnter your desired password below then click ok.",PlayerName(playerid));
ShowPlayerDialog(playerid,DIALOG_CHANGEPASS,DIALOG_STYLE_INPUT,"Enter the new password.",string,"Change","Cancel");
}
That should fix it.
Re: DIALOG_BOX -
rapister - 21.10.2012
Dude it's Same [it's Not BIG/Wide]
Re: DIALOG_BOX -
SwisherSweet - 21.10.2012
What you mean you want it as a really big dialog?
Or what?
Re: DIALOG_BOX -
rapister - 21.10.2012
i want Long Dialog Box.
Please Help
Re: DIALOG_BOX -
Danyal - 21.10.2012
Код:
//STOCK FUNCTIONS
stock GetPlayersInTeam(TEAM)
{
new players;
for (new i; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
if (gTeam[i] == TEAM) players++;
}
}
return players;
}
stock ShowLoginScreen(playerid)
{
new string[128];
format(string, sizeof(string), "Welcome back %s\nBefore playing you must login\nEnter your password below and click login ",PlayerName(playerid));
ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"Login required",string,"Login","Cancel");
}
stock ShowRegisterScreen(playerid)
{
new string[128];
format(string, sizeof(string), "Welcome to the server %s\nThis server requires you to register an account before playing\nEnter your desired password below then click ok ",PlayerName(playerid));
ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Registration required",string,"Register","Cancel");
}
stock ShowChangePassScreen(playerid)
{
new string[128];
format(string, sizeof(string), "Please make sure you enter your new password correctly.\nEnter your desired password below then click ok. ",PlayerName(playerid));
ShowPlayerDialog(playerid,DIALOG_CHANGEPASS,DIALOG_STYLE_INPUT,"Enter the new password.",string,"Change","Cancel");
}
try it
Re: DIALOG_BOX -
JaKe Elite - 21.10.2012
To have a wide dialog.
You must put a long message that fits your taste.
Re: DIALOG_BOX -
Adil - 21.10.2012
If you want a wider Dialog Box, stop using
\n in the dialog text. That should make it wider.