Dialog Help.
#1

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.
Reply
#2

Add \n at the end of each strcat portion.
Reply
#3

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;
    }
Reply
#4

Yup. \n means "new line" basically.
Reply
#5

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;
    }
Reply
#6

yes it is
Reply
#7

I said it was lol.
Reply
#8

I suggest u use zcmd..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)