Dialog + Format Help
#1

Hi I want to do DIALOG_MSGBOX points called to do that when the mission gets + 1 point, however, I have but the problem is that I do not know how to put something into the dialogue here but I do not know if it is as good if not how do I do that? :





Код:
public OnPlayerConnect(playerid)
{   new string[128],body[128];
	format(string,sizeof(string),"%s",("body",playerid));
	ShowPlayerDialog(playerid, body, DIALOG_STYLE_MSGBOX,"body",playerid, string, "Ok", "Esc");
    return 1;
}
Errors :


Код:
C:\Documents and Settings\Ronny\Plocha\zk.pwn(214) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
1 Error.
line
Код:
format(string,sizeof(string),"%s",("body",playerid));
Reply
#2

Код:
public OnPlayerConnect(playerid)
{   
     new string[128];
     format(string,sizeof (string),"Your text here");
     ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX,"Mission", string, "OK", "Esc");
     return 1;
}
And dialog id, which is 1 now, depends on what id you're using in OnDialogResponse
Reply
#3

Ano Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)