22.08.2012, 01:46
I have two dialogs, Rules and login/register
When I
the Rules box appears..
But when I appear them the rules don't appear
I want the rules appear, and when they accept, the other box appears.
Note: No Compiling error or warning.
When I
pawn Код:
/*The login/register*/
But when I appear them the rules don't appear
I want the rules appear, and when they accept, the other box appears.
pawn Код:
public OnPlayerConnect(playerid)
{
{
new pname[MAX_PLAYER_NAME], string[63 + MAX_PLAYER_NAME];
SendClientMessage(playerid,COLOR_GREEN,"Welcome to **********");
SendClientMessage(playerid,COLOR_GREEN,"Make sure you read and Abide by our /rules, and obey our admins.");
new C_Rules;
new BigString[1900];
strcat(BigString, "\n{FFFFFF}1. {F81414}Respect and obey all Admins.", 1900 );
strcat(BigString, "\n{FFFFFF}2. {F81414}Do not Deathmatch or Teamkill.", 1900 );
strcat(BigString, "\n{FFFFFF}3. {F81414}Do not Spam.", 1900 );
strcat(BigString, "\n{FFFFFF}4. {F81414}Do not use cheats or hacks.", 1900 );
strcat(BigString, "\n{FFFFFF}5. {F81414}Respect all other players.", 1900 );
strcat(BigString, "\n{FFFFFF}6. {F81414}******.", 1900 );
strcat(BigString, "\n{FFFFFF}7. {F81414}Never quit to avoid anything.", 1900 );
strcat(BigString, "\n{FFFFFF}8. {F81414}********other players.", 1900 );
strcat(BigString, "\n{FFFFFF}9. {F81414}****.", 1900 );
strcat(BigString, "\n{FFFFFF}10. {F81414}No mods are allowed.", 1900 );
ShowPlayerDialog(playerid,C_Rules, DIALOG_STYLE_MSGBOX, "{ff0000}Rules", BigString, "Accept","Ignore");
if(fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,"{F81414}San Andreas *****.","{FFFFFF}Welcome, Type your password below to login.\nIf it's not you, relog with a different username","Login","Quit");
}
else
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,"{F81414}San Andreas ********** ","{FFFFFF}Welcome, Type your password below to register a new account.","Register","Quit");
}
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "%s has Joined the server.", pname);
SendClientMessageToAll(COLOR_CYAN, string);
return 1;
}
}