new LongDialog [ 1024 ];
SetUpMyText();
ShowPlayerDialog(playerid, 555555, DIALOG_STYLE_MSGBOX,"Dialog Title",LongDialog, "button 1", "button 2");
SetUpMyText()
{
LongDialog = "Bla bla bal\n";
strcat(LongDialog, "Bla bla bal\n");
strcat(LongDialog, "Bla bla bal\n");
strcat(LongDialog, "Bla bla bal\n");
strcat(LongDialog, "Bla bla bal\n");
return 1;
)
ShowPlayerDialog( playerid, Dialog:ID, DIALOG_STYLE_LIST, "Title", "Long text, too long for the compiler \
to process.", "Submit", "Cancel" );
dcmd_cmds(playerid,params[]) { #pragma unused params ShowPlayerDialog(playerid, MENU+1, DIALOG_STYLE_LIST,"{0000FF}List of commands","{FFFF00}/rules\t\t\t {FFFFFF}Show server rules\ \n{FFFF00}/menu\t\t\t {FFFFFF}Show map list menu\ \n{FFFF00}/deleteobjects\t\t {FFFFFF}Delete all loaded objects\ \n{FFFF00}/info\t\t\t {FFFFFF}Show information about the server\ \n{FFFF00}/home\t\t\t {FFFFFF}Teleport back to spawnpoint\ \n{FFFF00}/vehicle\t\t {FFFFFF}Spawn a vehicle\ \n{FFFF00}/website\t\t {FFFFFF}Show server website\ \n{FFFF00}/sounds\t\t {FFFFFF}Show list of sounds\ \n{FFFF00}/ho\t\t\t {FFFFFF}Holding object list\ \n{FF0000}Part 2","Select","Cancel"); return 1; }
Sorry, but I still have a problem (the same).
Here's the script: Code:
dcmd_cmds(playerid,params[]) { #pragma unused params ShowPlayerDialog(playerid, MENU+1, DIALOG_STYLE_LIST,"{0000FF}List of commands","{FFFF00}/rules\t\t\t {FFFFFF}Show server rules\ \n{FFFF00}/menu\t\t\t {FFFFFF}Show map list menu\ \n{FFFF00}/deleteobjects\t\t {FFFFFF}Delete all loaded objects\ \n{FFFF00}/info\t\t\t {FFFFFF}Show information about the server\ \n{FFFF00}/home\t\t\t {FFFFFF}Teleport back to spawnpoint\ \n{FFFF00}/vehicle\t\t {FFFFFF}Spawn a vehicle\ \n{FFFF00}/website\t\t {FFFFFF}Show server website\ \n{FFFF00}/sounds\t\t {FFFFFF}Show list of sounds\ \n{FFFF00}/ho\t\t\t {FFFFFF}Holding object list\ \n{FF0000}Part 2","Select","Cancel"); return 1; } ...\Gamemode.pwn(31 : error 075: input line too long (after substitutions) ...\Gamemode.pwn(319) : error 037: invalid string (possibly non-terminated string) ...\gamemodes\Gamemode.pwn(319) : error 017: undefined symbol "FFFF00" ...\gamemodes\Gamemode.pwn(319) : error 029: invalid expression, assumed zero ...\gamemodes\Gamemode.pwn(319) : fatal error 107: too many error messages on one line It's the same problem like making a long dialog in one line. Help? |
new AnimationsDialog [1024];
dcmd_animlist(playerid,params[]) { #pragma unused params ShowPlayerDialog(playerid, MENU+2, DIALOG_STYLE_MSGBOX,"{0000FF}List of animations",AnimationsDialog, "Close", ""); return 1; }
dcmd(animlist,8,cmdtext);
DialogText();
DialogText() { AnimationsDialog = "/serve - /lay - /rollfall - /bomb - /basket\n"; strcat(AnimationsDialog, "/camera - /feelbad - /waterjump - /eat\n"); strcat(AnimationsDialog, "/vomit - /flowers - /monkey - /knife\n"); strcat(AnimationsDialog, "/wave - /kiss - /spraycan - /chant - /shout\n"); strcat(AnimationsDialog, "/sword - /skate - /wuzi - /dealstance\n"); strcat(AnimationsDialog, "/drink - /dance - /slap - /sex - /smoke\n"); strcat(AnimationsDialog, "/sad - /security - /lookout - /yeah - /talk\n"); strcat(AnimationsDialog, "/facepalm - /sup - /no - /yes - /bye - /kick\n"); strcat(AnimationsDialog, "/fall - /lifejump - /fu - /omg - /handsup\n"); strcat(AnimationsDialog, "/taxi - /walk - /die - /drunk - /woman"); return 1; )