I cant see the dialog?
#1

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
Reply
#2

what is your dialog ID?
example
Код:
if(dialogid == 3)//THIS IS DIALOG ID
	{
	  if(response)
Reply
#3

Look at the code

Anyway the id shouldnt make a difference
Reply
#4

Getting Warnings on compile?
Reply
#5

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
Reply
#6

Post your onplayerconnect code.
Reply
#7

For me, dialogs works fine everytime... strange
Reply
#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
#9

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;
}
Reply
#10

ill do it how i want xd anyway still dont work any1 know
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)