Adding %s to showplayerdialog..
#10

Quote:
Originally Posted by Schneider
View Post
You can't format a string within the ShowPlayerDialog-function. You first have to format the string and then show the string in that function:

pawn Code:
CMD:credits(playerid, params[])
{
    new pname[MAX_PLAYER_NAME], str[280];
    GetPlayerName(playerid, pname,sizeof(pname));
    format(str, sizeof(str),"Scripters: StuunG23\nMappers: StuunG23\nTesters: PedroX_, Syntec,Yannick, Ultrascripter\nSpecial Thanks to: Pedrox,Syntec,Ultrascripter, Yannick,Dopeboy,Dynamite\nAnd for the sa-mp development team. and thank you %s for playing in our server", pname);
    ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Credits", str, "Ok","");
    return 1;
}
Wesley!!!!
Maak eens een goaltjuhhh!!!
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: 1 Guest(s)