SA-MP Forums Archive
Msgbox dialog errors - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Msgbox dialog errors (/showthread.php?tid=542006)



Msgbox dialog errors - Ryz - 16.10.2014

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



Re: Msgbox dialog errors - TheNerka - 16.10.2014

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


Re: Msgbox dialog errors - Ryz - 16.10.2014

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



Re: Msgbox dialog errors - TheNerka - 16.10.2014

show 11889 11890 11891 lines


Re: Msgbox dialog errors - Ryz - 16.10.2014

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;
}



Re: Msgbox dialog errors - RockyGamer - 16.10.2014

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;
}



Re: Msgbox dialog errors - TheNerka - 16.10.2014

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


Re: Msgbox dialog errors - VivianKris - 16.10.2014

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

Maybe youd like this.


Re: Msgbox dialog errors - Ryz - 16.10.2014

Thanks. fixed!