SA-MP Forums Archive
Warning :( - 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: Warning :( (/showthread.php?tid=481186)



Warning :( - IceKold - 14.12.2013

Warning (

Код:
    if(AccInfo[recieverid][PMStyle] == 0)
    {
        AccInfo[recieverid][PMID] = playerid;
        format(string, 220, "{FF9900}You have recieved an PM Message from {11FF00}\"%s\"\nMessage:\n {AFAFAF}\"%s\"\n{FF9900}Write a text bellow if you want to respond to his message:", PlayerName2(playerid), text);
        ShowPlayerDialog(recieverid, DIALOG_TYPE_PM, DIALOG_STYLE_INPUT, "{CCCCCC}Private Message %s(%d)", string, "Send", "Close", PlayerName2(playerid), playerid);
    }
Warning:
Код:
 ShowPlayerDialog(recieverid, DIALOG_TYPE_PM, DIALOG_STYLE_INPUT, "{CCCCCC}Private Message %s(%d)", string, "Send", "Close", PlayerName2(playerid), playerid);
Image:
[IMG][/IMG]


Re: Warning :( - Beckett - 14.12.2013

You must format your string, then you DIALOG it.
Код:
new string[185];
format(string,sizeof(string),"YOUR SHIT HERE",other shit here)
ShowPlayerDialog(recieverid,DIALOG_TYPE,PM,DIALOG_STYLE_INPUT,string,"button1","button2");