CMD:rules(playerid, params[])
{
static
msg[576] = { 0, ... };
strcat(msg, "{FF0000}---= Call Of Duty - World War III Rules =---\n{FFFFFF}1.Don't Use Any Kind of bugs.\n2.Don't Hacks / Cheats.\n3.Don't Insult/spam/flood.\n4.Respect All Players/Admins.\n");
strcat(msg, "5.Don't Score Farm.\n6.Don't Park Your Car On Other Players.\n7.Don't Spawn Kill.\n8.Don't Ask For Score or cash or any propotion..etc from admins.\n9.Don't Team Attack/Kill.\n10.Don't Team Car Jack.\n11.Visit Our Website:http://www.codextreme.comoj.com and be part of the Community.\n{FF0000}______________________________ __________________");
ShowPlayerDialog(playerid, 456, DIALOG_STYLE_MSGBOX, "RULES", msg, "OK", "");
return 1;
}
new string[] = "A very, very, very, very, very, very, very, very, very, very, very \ , very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, \ , very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, \ , very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very \ long string.";
The string that you declared is too long. Use '\' to divide the string into multiple lines.
Example: Код:
new string[] = "A very, very, very, very, very, very, very, very, very, very, very \ , very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, \ , very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, \ , very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very \ long string."; |
CMD:rules(playerid,parmas[]) { ShowPlayerDialog(playerid, 456, DIALOG_STYLE_MSGBOX, "RULES(Page-1/2)","{FF0000}---= Call Of Duty - World War III Rules =---\n{FFFFFF}1.Don't Use Any Kind of bugs.\n2.Don't Hacks / Cheats.\n3.Don't Insult/spam/flood.\n4.Respect All Players/Admins.\n5.Don't Score Farm.\n6.Don't Park Your Car On Other Players.","Next Page",""); return 1;} public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == 456) {new rules2; ShowPlayerDialog(playerid, rules2, DIALOG_STYLE_MSGBOX,"RULES(Page-2/2)", "{FFFFFF}7.Don't Spawn Kill.\n8.Don't Ask For Score or cash or any propotion..etc from admins.\n9.Don't Team Attack/Kill.\n10.Don't Team Car Jack.\n11.Visit Our Website:www.codextreme.comoj.com and be part of the Community.\n{FF0000}______________________________ __________________","OK","");} }