I cant see the dialog? -
Torran - 09.05.2010
Code:
pawn Код:
ShowPlayerDialog(playerid, 1234, DIALOG_STYLE_INPUT, "Register your Account", "Welcome \nPlease register your account on this server", "Register", "Quit");
Problem:
I have that under OnPlayerConnect, And when i connect to my server i do not see that dialog?? Why is that?
Ive tried another dialog and i still cant see it! Why is this happening?
Other Info:
Please help me
Re: I cant see the dialog? -
luckie12 - 09.05.2010
what is your dialog ID?
example
Код:
if(dialogid == 3)//THIS IS DIALOG ID
{
if(response)
Re: I cant see the dialog? -
Torran - 09.05.2010
Look at the code
Anyway the id shouldnt make a difference
Re: I cant see the dialog? -
luckie12 - 09.05.2010
Getting Warnings on compile?
Re: I cant see the dialog? -
Torran - 09.05.2010
No. Ive checked over everything, Even got a dialog script and got the dialog show thing of there still nothing,
Ive tried everything i can think of
Re: I cant see the dialog? -
shady91 - 09.05.2010
Post your onplayerconnect code.
Re: I cant see the dialog? -
¤Adas¤ - 09.05.2010
For me, dialogs works fine everytime... strange
Re: I cant see the dialog? -
Torran - 09.05.2010
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;
}
Re: I cant see the dialog? -
Jefff - 09.05.2010
Why U use many arrays for this
Код:
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);
format(joinMsg, 35, "/TSMS/%s.ini", playerName);
if(!fexist(joinMsg)) {
format(joinMsg, sizeof joinMsg, "Welcome %s to %s\nPlease register your account on this server", playerName, GetServerHostName());
ShowPlayerDialog(playerid, 1234, DIALOG_STYLE_INPUT, "Register your Account", joinMsg, "Register", "Quit");
}else{
format(joinMsg, sizeof joinMsg, "Welcome %s to %s\nPlease login to your account", playerName, GetServerHostName());
ShowPlayerDialog(playerid, 5678, DIALOG_STYLE_INPUT, "Login to your Account", joinMsg, "Login", "Quit");
}
//ShowPlayerDialog(playerid, 1234, DIALOG_STYLE_INPUT, "Register your Account", "Welcome \nPlease register your account on this server", "Register", "Quit");
return 1;
}
Re: I cant see the dialog? -
Torran - 10.05.2010
ill do it how i want xd anyway still dont work any1 know