input line too long (after substitutions) - 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: input line too long (after substitutions) (
/showthread.php?tid=480060)
input line too long (after substitutions) -
Cerealguy - 08.12.2013
help me please u.u
pawn Код:
if(dialogid == CMDS_INFO)
{
if(response)
{
if(listitem == 0)
{
ShowPlayerDialog(playerid, CMDS_INFO+1, DIALOG_STYLE_MSGBOX,
"{33CCFF}General Command:",
"{FFFFFF}/pm - {bcbcbc}Send a private message to a player\n\
{FFFFFF}/lockpm - {bcbcbc}Block private messages\n\
{FFFFFF}/admins - {bcbcbc}Show all online administrator\n\
{FFFFFF}/perks - {bcbcbc}Multiple functions requiring EXP\n\
{FFFFFF}/sm - {bcbcbc}Send money to another player\n\
{FFFFFF}/hitmarker - {bcbcbc}See the damage to the player attacks\n\
{FFFFFF}/report - {bcbcbc}Report a player with administrators\n\
{FFFFFF}/anim - {bcbcbc}Show all animation command",
"Back", "");
}
if(listitem == 1)
{
ShowPlayerDialog(playerid, CMDS_INFO+2, DIALOG_STYLE_MSGBOX,
"{33CCFF}//General\n\
{FFFFFF}/rob - {bcbcbc}Rob a player\n\
{FFFFFF}/rape - {bcbcbc}Infect a player\n\
{FFFFFF}/tie - {bcbcbc}Tying a player\n\
{FFFFFF}/untie - {bcbcbc}Un-tying a player\n\
{FFFFFF}/shop - {bcbcbc}Buy in supa\n\
{33CCFF}//Terrorist\n\
{FFFFFF}/plantc4 - {bcbcbc}Explode in 'Y' key\n\
{33CCFF}//Weapon Dealer\n\
{FFFFFF}/sellgun - {bcbcbc}Selling arms to a player\n\
{33CCFF}//Hitman\n\
{FFFFFF}/hitlist - {bcbcbc}Show player with contract\n\ //error 075: input line too long (after substitutions)
{FFFFFF}/tracker - {bcbcbc}Locate a player (soon)\n\",
"Back", "");
}
}
}
Re: input line too long (after substitutions) -
arakuta - 08.12.2013
Use STRCAT to concatenate the big string into a variable, then use this variable on ShowPlayerDialog.
Re: input line too long (after substitutions) -
Cerealguy - 08.12.2013
o.o strcat ,could help me please, first I will use it not as :'c
Re: input line too long (after substitutions) -
erminpr0 - 08.12.2013
pawn Код:
new string[512];
format(string, 512, "{33CCFF}//General\n");
strcat(string, "{FFFFFF}/rob - {bcbcbc}Rob a player\n");
strcat(string, "{FFFFFF}/rape - {bcbcbc}Infect a player\n");
strcat(string, "{FFFFFF}/tie - {bcbcbc}Tying a player\n");
strcat(string, "{FFFFFF}/untie - {bcbcbc}Un-tying a player\n");
strcat(string, "{FFFFFF}/shop - {bcbcbc}Buy in supa\n");
strcat(string, "{33CCFF}//Terrorist\n");
strcat(string, "{FFFFFF}/plantc4 - {bcbcbc}Explode in 'Y' key\n");
strcat(string, "{33CCFF}//Weapon Dealer\n");
strcat(string, "{FFFFFF}/sellgun - {bcbcbc}Selling arms to a player\n");
strcat(string, "{33CCFF}//Hitman\n");
strcat(string, "{FFFFFF}/hitlist - {bcbcbc}Show player with contract\n");
strcat(string, "{FFFFFF}/tracker - {bcbcbc}Locate a player (soon)\n");
ShowPlayerDialog(playerid, CMDS_INFO+2, DIALOG_STYLE_MSGBOX, "Info", string, "Back", "");
Re: input line too long (after substitutions) -
Cerealguy - 08.12.2013
i love thanks arakuta and erminpr0
<3