Dialog + Format Help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Dialog + Format Help (
/showthread.php?tid=455521)
Dialog + Format Help -
RonnyCZ - 02.08.2013
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));
Re: Dialog + Format Help -
appleomax - 02.08.2013
Код:
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
Re: Dialog + Format Help -
RonnyCZ - 02.08.2013
Ano Thanks