How to format a string on dialog? - 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: How to format a string on dialog? (
/showthread.php?tid=357488)
How to format a string on dialog? -
Dubya - 07.07.2012
Hello. I was just wondering how I would format a string with dialog, I'm trying to make a new /Invite for my LSPD on my server. Just wondering how I would format it with dialog, so I could use my custom stock's with it. And it would show it correctly.
Re: How to format a string on dialog? -
DBan - 07.07.2012
Did you mean this?
pawn Код:
format(string, sizeof(string), "Blah blah %s", pname);
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Caption", string, "Okay", "");
Re: How to format a string on dialog? -
Dubya - 07.07.2012
Yep. Thank you.