Adding %s to showplayerdialog..
#11

Quote:
Originally Posted by Abagail
View Post
No, you need to format it into a string, you can't natively use formatting in regular functions. Example:
pawn Code:
new
     string[128],
     header[50];

format(header, sizeof header, "Players name %s", GetName(targetid));
ShowPlayerDialog(playerid, XXX, DIALOG_STYLE_MSGBOX, header, string, "Ok", "");
return 1;
}
SO SIMPLE AND WORKING THANKS ALOT

I'am so noob i did not make this by myself
Reply


Messages In This Thread
Adding %s to showplayerdialog.. - by Glossy42O - 05.01.2015, 04:49
Re: Adding %s to showplayerdialog.. - by Schneider - 05.01.2015, 04:54
Re: Adding %s to showplayerdialog.. - by Glossy42O - 05.01.2015, 05:56
Re: Adding %s to showplayerdialog.. - by DaniceMcHarley - 05.01.2015, 07:33
Re: Adding %s to showplayerdialog.. - by ThomasEvil - 06.06.2017, 19:15
Re: Adding %s to showplayerdialog.. - by Vince - 06.06.2017, 19:16
Re: Adding %s to showplayerdialog.. - by ThomasEvil - 06.06.2017, 19:18
Re: Adding %s to showplayerdialog.. - by Abagail - 06.06.2017, 19:18
Re: Adding %s to showplayerdialog.. - by Kyle - 06.06.2017, 19:19
Re: Adding %s to showplayerdialog.. - by Ivor8000 - 06.06.2017, 19:21
Re: Adding %s to showplayerdialog.. - by ThomasEvil - 06.06.2017, 19:22

Forum Jump:


Users browsing this thread: 2 Guest(s)