SA-MP Forums Archive
a useful idea with DIALOG_STYLE_MSG - 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: a useful idea with DIALOG_STYLE_MSG (/showthread.php?tid=112391)



a useful idea with DIALOG_STYLE_MSG - oicq747285250 - 07.12.2009

the function ShowPlayerWritingDialog(playerid, dialogid, text[])
strlen(text) to get the text length
then
make a timer
SetTimer("SpecialShowPlayerDialog",speed,1,"ddds", playerid, dialogid, style, text);

function SpecialShowPlayerDialog(playerid, dialogid, style, text[])
{
len++
ShowPlayerDialog(i,12350,DIALOG_STYLE_MSGBOX, "", text+text[len],"OK","CANCEL");
}