I cant see the dialog?
#8

pawn Код:
public OnPlayerConnect(playerid)
{
    new joinMsg[128], playerName[MAX_PLAYER_NAME]; GetPlayerName(playerid, playerName, sizeof playerName);

    format(joinMsg, sizeof joinMsg, " >> <> %s has joined %s <> <<", playerName, GetServerHostName());
    SendClientMessageToAll(colorWhite, joinMsg);
    format(joinMsg, sizeof joinMsg, " >> <> Welcome %s to %s! <> <<", playerName, GetServerHostName());
    SendClientMessageToAll(colorWhite, joinMsg);

    new playerFile[128], registerText[128], loginText[128];
    format(playerFile, sizeof playerFile, "/TSMS/%s.ini", playerName);
    format(registerText, sizeof registerText, "Welcome %s to %s\nPlease register your account on this server", playerName, GetServerHostName());
    format(loginText, sizeof loginText, "Welcome %s to %s\nPlease login to your account", playerName, GetServerHostName());
//  if(!fexist(playerFile)) return*/ ShowPlayerDialog(playerid, 1234, DIALOG_STYLE_INPUT, "Register your Account", registerText, "Register", "Quit");
//  if(fexist(playerFile)) return ShowPlayerDialog(playerid, 5678, DIALOG_STYLE_INPUT, "Login to your Account", loginText, "Login", "Quit");
    ShowPlayerDialog(playerid, 1234, DIALOG_STYLE_INPUT, "Register your Account", "Welcome \nPlease register your account on this server", "Register", "Quit");
    return 1;
}
Reply


Messages In This Thread
I cant see the dialog? - by Torran - 09.05.2010, 16:43
Re: I cant see the dialog? - by luckie12 - 09.05.2010, 17:51
Re: I cant see the dialog? - by Torran - 09.05.2010, 19:16
Re: I cant see the dialog? - by luckie12 - 09.05.2010, 19:22
Re: I cant see the dialog? - by Torran - 09.05.2010, 19:24
Re: I cant see the dialog? - by shady91 - 09.05.2010, 19:26
Re: I cant see the dialog? - by ¤Adas¤ - 09.05.2010, 19:27
Re: I cant see the dialog? - by Torran - 09.05.2010, 19:28
Re: I cant see the dialog? - by Jefff - 09.05.2010, 20:50
Re: I cant see the dialog? - by Torran - 10.05.2010, 07:55

Forum Jump:


Users browsing this thread: 1 Guest(s)