SA-MP Forums Archive
Help involving ShowPlayerDialog - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help involving ShowPlayerDialog (/showthread.php?tid=219705)



Help involving ShowPlayerDialog - SchurmanCQC - 02.02.2011

How do I do a dialog with 1 ( one ) option like:
pawn Код:
ShowPlayerDialog(playerid,5,DIALOG_STYLE_MSGBOX," Teleported ","Welcome to {FFFFF}Los Santos.","Close");
Without getting a:
Код:
C:\Program Files\Rockstar Games\Roleplay server 0.223\gamemodes\UltimateFreeroambeta.pwn(3151) : warning 202: number of arguments does not match definition
?

Thanks.


Re: Help involving ShowPlayerDialog - mmrk - 02.02.2011

Change {FFFFF} to {FFFFFF}
And after "Close" add ,""

So it looks like this:
pawn Код:
ShowPlayerDialog(playerid,5,DIALOG_STYLE_MSGBOX," Teleported ","Welcome to {FFFFFF}Los Santos.","Close", "");



Re: Help involving ShowPlayerDialog - SchurmanCQC - 02.02.2011

Oh... So if I don't want a second button I'll put
pawn Код:
.......,"Close","");
. Thanks.