[HELP] What's wrong with this code? 'bout a message box
#5

Use '\' when your strings getting large..

Код:
if(!strcmp(cmdtext, "/rules", true))
{
    ShowPlayerDialog(playerid, 3, DIALOG_STYLE_MSGBOX, "Do you accept our rules?",
	"\
	1 We want you to behave like in real life.\n\
	2 Talk normally or you can get kicked/banned.\n\
	3 Cheating or bug abusing results in a ban, also try /abusehelp\n\
	4 Respect eachother and respect the admins, also try /abusehelp\n\
	5 Spawnkilling and driveover kills aren't allowed.\n\
	6 Use English or Dutch in any the mainchat.\n\
	7 Advertising is allowed but if you're advertising a bad site it's a ban.\n\
	Follow this rules and nothing will happen to you.", "Accept", "Decline");
	return 1;
}
Works fine for me.
(Learn to indentitate your codes)
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)