Msgbox dialog errors
#1

pawn Code:
ShowPlayerDialog(playerid,0,DIALOG_STYLE_MSGBOX ,"commands","All commands start with / symbol. example /help.\n| Ranks | Rank | Kill | Rules | Stats | Streak | pdm | mdm |\n| Help | Anims | Laseron | Lasercol | Spree | Getid |\n| Sync | Pm | Rpm | Order [text] | R [text] | S [text] | Dnd |\n| Operators | Admins | Donors | Teams | Savestats | Updates | Richlist |\n| Changepass | Switchteam | Switchclass | St | Sc | Nuke | Anthraxhelp | \n| Dcmds | Disguise | Ep | Shelp | Givemoney | Givegun | Times |","Ok","");
ERRORS

pawn Code:
C:\Users\Ryz\Desktop\Call of Duty\gamemodes\codwwh.pwn(11885) : error 075: input line too long (after substitutions)
C:\Users\Ryz\Desktop\Call of Duty\gamemodes\codwwh.pwn(11886) : error 037: invalid string (possibly non-terminated string)
C:\Users\Ryz\Desktop\Call of Duty\gamemodes\codwwh.pwn(11886) : error 017: undefined symbol "Ok"
C:\Users\Ryz\Desktop\Call of Duty\gamemodes\codwwh.pwn(11887) : error 037: invalid string (possibly non-terminated string)
C:\Users\Ryz\Desktop\Call of Duty\gamemodes\codwwh.pwn(11887) : warning 215: expression has no effect
C:\Users\Ryz\Desktop\Call of Duty\gamemodes\codwwh.pwn(11887) : error 001: expected token: ";", but found ")"
C:\Users\Ryz\Desktop\Call of Duty\gamemodes\codwwh.pwn(11887) : error 029: invalid expression, assumed zero
C:\Users\Ryz\Desktop\Call of Duty\gamemodes\codwwh.pwn(11887) : fatal error 107: too many error messages on one line
Reply
#2

Code:
new msg1[256];
new msg2[256];
new msg3[256];
format(msg1, sizeof(msg1) "All commands start with / symbol. example /help.\n| Ranks | Rank | Kill | Rules | Stats | Streak | pdm | mdm |\n| Help | Anims | Laseron | Lasercol | Spree | Getid |\n| Sync | Pm | Rpm | Order [text] | R [text] | S [text] | Dnd |\n");
format(msg2, sizeof(msg2) "| Operators | Admins | Donors | Teams | Savestats | Updates | Richlist |\n| Changepass | Switchteam | Switchclass | St | Sc | Nuke | Anthraxhelp | \n| Dcmds | Disguise | Ep | Shelp | Givemoney | Givegun | Times |");
format(msg3, sizeof(msg3) "%s%s", msg1, msg2);
ShowPlayerDialog(playerid,0,DIALOG_STYLE_MSGBOX , msg3, "Ok", "");
try this
Reply
#3

pawn Code:
C:\Users\Ryz\Desktop\Call of Duty\gamemodes\codwwh.pwn(11890) : error 001: expected token: ",", but found "-string-"
C:\Users\Ryz\Desktop\Call of Duty\gamemodes\codwwh.pwn(11890) : warning 215: expression has no effect
C:\Users\Ryz\Desktop\Call of Duty\gamemodes\codwwh.pwn(11890) : error 001: expected token: ";", but found ")"
C:\Users\Ryz\Desktop\Call of Duty\gamemodes\codwwh.pwn(11890) : error 029: invalid expression, assumed zero
C:\Users\Ryz\Desktop\Call of Duty\gamemodes\codwwh.pwn(11890) : fatal error 107: too many error messages on one line
Reply
#4

show 11889 11890 11891 lines
Reply
#5

pawn Code:
CMD:cmds(playerid, params[])
{
 new msg1[256];
new msg2[256];
new msg3[256];
format(msg1, sizeof(msg1) "All commands start with / symbol. example /help.\n| Ranks | Rank | Kill | Rules | Stats | Streak | pdm | mdm |\n| Help | Anims | Laseron | Lasercol | Spree | Getid |\n| Sync | Pm | Rpm | Order [text] | R [text] | S [text] | Dnd |\n");
format(msg2, sizeof(msg2) "| Operators | Admins | Donors | Teams | Savestats | Updates | Richlist |\n| Changepass | Switchteam | Switchclass | St | Sc | Nuke | Anthraxhelp | \n| Dcmds | Disguise | Ep | Shelp | Givemoney | Givegun | Times |");
format(msg3, sizeof(msg3) "%s%s", msg1, msg2);
ShowPlayerDialog(playerid,0,DIALOG_STYLE_MSGBOX , msg3, "Ok", "");
    return true;
}
Reply
#6

pawn Code:
CMD:cmds(playerid, params[])
{
    new msg1[256];
    new msg2[256];
    new msg3[256];
    format(msg1, sizeof(msg1), "All commands start with / symbol. example /help.\n| Ranks | Rank | Kill | Rules | Stats | Streak | pdm | mdm |\n| Help | Anims | Laseron | Lasercol | Spree | Getid |\n| Sync | Pm | Rpm | Order [text] | R [text] | S [text] | Dnd |\n");
    format(msg2, sizeof(msg2), "| Operators | Admins | Donors | Teams | Savestats | Updates | Richlist |\n| Changepass | Switchteam | Switchclass | St | Sc | Nuke | Anthraxhelp | \n| Dcmds | Disguise | Ep | Shelp | Givemoney | Givegun | Times |");
    format(msg3, sizeof(msg3), "%s%s", msg1, msg2);
    ShowPlayerDialog(playerid,0,DIALOG_STYLE_MSGBOX , msg3, "Ok", "");
    return true;
}
Reply
#7

Code:
CMD:cmds(playerid, params[])
{
    new msg1[256];
    new msg2[256];
    new msg3[256];
    format(msg1, sizeof(msg1), "All commands start with / symbol. example /help.\n| Ranks | Rank | Kill | Rules | Stats | Streak | pdm | mdm |\n| Help | Anims | Laseron | Lasercol | Spree | Getid |\n| Sync | Pm | Rpm | Order [text] |");
    format(msg2, sizeof(msg2), "| Operators | Admins | Donors | Teams | Savestats | Updates | Richlist |\n| Changepass | Switchteam | Switchclass | St | Sc | Nuke | Anthraxhelp | \n| Dcmds | Disguise | Ep | Shelp | Givemoney | Givegun | Times |");
    format(msg3, sizeof(msg3), "%s%s", msg1, msg2);
    ShowPlayerDialog(playerid,0,DIALOG_STYLE_MSGBOX ,"Commands", msg3, "Ok", "");
    return true;
}
fixed
Reply
#8

Making really long dialogs without crashing the server
https://sampforum.blast.hk/showthread.php?tid=336102

Maybe youd like this.
Reply
#9

Thanks. fixed!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)