strcat(string, "{15FF00}1.{FFFFFF}Your Text\n");
strcat(string, "{15FF00}2.{FFFFFF}Your Text\n");
strcat(string, "{15FF00}3.{FFFFFF}Your Text\n");
strcat(string, "{15FF00}4. {FFFFFF}Your Text\n");
strcat(string, "{15FF00}5. {FFFFFF}Your Text\n");
strcat(string, "{15FF00}6.{FFFFFF}Your Text\n");
strcat(string, "{15FF00}7.{FFFFFF}Your Text\n");
strcat(string, "{15FF00}8.{FFFFFF}Your Text\n");
strcat(string, "{15FF00}9.{FFFFFF}Your Text\n");
strcat(string, "{15FF00}10.{FFFFFF}Your Text\n");
strcat(string, "{15FF00}11.{FFFFFF}Your Text\n");
strcat(string, "{15FF00}12.{FFFFFF}Your Text\n");
strcat(string, "{15FF00}13.{FFFFFF}Your Text\n\n");
strcat(string, "\n\n");
ShowPlayerDialog(giveid, 44, DIALOG_STYLE_MSGBOX, "Server Rules", string, "OK", "");
If it helps you, you can + rep me |
This does not belong in the Filterscript section, this has a better place in the useful snippets topic.
strcat(string, "{15FF00}1.{FFFFFF}Your Text\n"); strcat(string, "{15FF00}2.{FFFFFF}Your Text\n"); strcat(string, "{15FF00}3.{FFFFFF}Your Text\n"); strcat(string, "{15FF00}4. {FFFFFF}Your Text\n"); strcat(string, "{15FF00}5. {FFFFFF}Your Text\n"); strcat(string, "{15FF00}6.{FFFFFF}Your Text\n"); strcat(string, "{15FF00}7.{FFFFFF}Your Text\n"); strcat(string, "{15FF00}8.{FFFFFF}Your Text\n"); strcat(string, "{15FF00}9.{FFFFFF}Your Text\n"); strcat(string, "{15FF00}10.{FFFFFF}Your Text\n"); strcat(string, "{15FF00}11.{FFFFFF}Your Text\n"); strcat(string, "{15FF00}12.{FFFFFF}Your Text\n"); strcat(string, "{15FF00}13.{FFFFFF}Your Text\n\n"); strcat(string, "\n\n"); ShowPlayerDialog(giveid, 44, DIALOG_STYLE_MSGBOX, "Server Rules", string, "OK", ""); This is the weird part. Why you put 4 line breaks on the end? And why do some lines have more spaces after the number, lol. |
public OnPlayerConnect(playerid)
{
new string [944];
new giveid;
strcat(string, "{15FF00}1.{FFFFFF}Your Text\n");
strcat(string, "{15FF00}2.{FFFFFF}Your Text\n");
strcat(string, "{15FF00}3.{FFFFFF}Your Text\n");
strcat(string, "{15FF00}4. {FFFFFF}Your Text\n");
strcat(string, "{15FF00}5. {FFFFFF}Your Text\n");
strcat(string, "{15FF00}6.{FFFFFF}Your Text\n");
strcat(string, "{15FF00}7.{FFFFFF}Your Text\n");
strcat(string, "{15FF00}8.{FFFFFF}Your Text\n");
strcat(string, "{15FF00}9.{FFFFFF}Your Text\n");
strcat(string, "{15FF00}10.{FFFFFF}Your Text\n");
strcat(string, "{15FF00}11.{FFFFFF}Your Text\n");
strcat(string, "{15FF00}12.{FFFFFF}Your Text\n");
strcat(string, "{15FF00}13.{FFFFFF}Your Text\n\n");
strcat(string, "\n\n");
ShowPlayerDialog(giveid, 44, DIALOG_STYLE_MSGBOX, "Server Rules", string, "OK", "");
return 1;
}
You're just copying and pasting, lol. V2 won't work.
PHP код:
|