Dialog Help. - 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: Dialog Help. (
/showthread.php?tid=519176)
Dialog Help. -
Tuntun - 13.06.2014
My codes:
Код:
else if(!strcmp(cmd, "/rules"))
{
new rulesmsg[500];
strcat(rulesmsg, "---- Rules of The Pilots Paradise ----");
strcat(rulesmsg, "{FF8000}1) Do not deathmatch under any circumstances. - This includes planebombing.");
strcat(rulesmsg, "{FF8000}2) Do not abuse bugs which may have occured.");
strcat(rulesmsg, "{FF8000}3) Never attempt to cheat by using hacking tools, trainers or anything alike.");
strcat(rulesmsg, "{FF8000}4) Do not advertise any server which isn't related to the Pilots Paradise here.");
strcat(rulesmsg, "{FF8000}5) Be mature while playing, do not insult others. - Don't be a troll.");
strcat(rulesmsg, "--- For a full list of rules, visit the /forums ---");
ShowPlayerDialog(playerid, DIALOG_RULESMSG1, DIALOG_STYLE_MSGBOX, "Rules", rulesmsg, "OK", "");
return 1;
}
My problem is : the message in just 1 line... but i want to add them in 5 lines. because in 1 line its too big.
Re: Dialog Help. -
nmader - 13.06.2014
Add \n at the end of each strcat portion.
Re: Dialog Help. -
Tuntun - 13.06.2014
Like this?:
pawn Код:
else if(!strcmp(cmd, "/rules"))
{
new rulesmsg[500];
strcat(rulesmsg, "---- Rules of The Pilots Paradise ----\n");
strcat(rulesmsg, "{FF8000}1) Do not deathmatch under any circumstances. - This includes planebombing.\n");
strcat(rulesmsg, "{FF8000}2) Do not abuse bugs which may have occured.\n");
strcat(rulesmsg, "{FF8000}3) Never attempt to cheat by using hacking tools, trainers or anything alike.\n");
strcat(rulesmsg, "{FF8000}4) Do not advertise any server which isn't related to the Pilots Paradise here.\n");
strcat(rulesmsg, "{FF8000}5) Be mature while playing, do not insult others. - Don't be a troll.\n");
strcat(rulesmsg, "--- For a full list of rules, visit the /forums ---\n");
ShowPlayerDialog(playerid, DIALOG_RULESMSG1, DIALOG_STYLE_MSGBOX, "Rules", rulesmsg, "OK", "");
return 1;
}
Re: Dialog Help. -
nmader - 13.06.2014
Yup. \n means "new line" basically.
Re: Dialog Help. -
Tuntun - 13.06.2014
Dude... my code is correct with what did you mean?
pawn Код:
else if(!strcmp(cmd, "/rules"))
{
new rulesmsg[500];
strcat(rulesmsg, "---- Rules of The Pilots Paradise ----\n");
strcat(rulesmsg, "{FF8000}1) Do not deathmatch under any circumstances. - This includes planebombing.\n");
strcat(rulesmsg, "{FF8000}2) Do not abuse bugs which may have occured.\n");
strcat(rulesmsg, "{FF8000}3) Never attempt to cheat by using hacking tools, trainers or anything alike.\n");
strcat(rulesmsg, "{FF8000}4) Do not advertise any server which isn't related to the Pilots Paradise here.\n");
strcat(rulesmsg, "{FF8000}5) Be mature while playing, do not insult others. - Don't be a troll.\n");
strcat(rulesmsg, "--- For a full list of rules, visit the /forums ---\n");
ShowPlayerDialog(playerid, DIALOG_RULESMSG1, DIALOG_STYLE_MSGBOX, "Rules", rulesmsg, "OK", "");
return 1;
}
Re: Dialog Help. -
BroZeus - 13.06.2014
yes it is
Re: Dialog Help. -
nmader - 13.06.2014
I said it was lol.
Re: Dialog Help. - SupaFool - 13.06.2014
I suggest u use zcmd..