SA-MP Forums Archive
My dialog is too long. - 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: My dialog is too long. (/showthread.php?tid=185200)



My dialog is too long. - Las Venturas CNR - 23.10.2010

Simple question, what do I do if I get the error

G:\SA-MP Shit\Cops And Robbers\gamemodes\CNR.pwn(5883) : error 075: input line too long (after substitutions)


And the line you may ask:


pawn Code:
ShowPlayerDialog(playerid,20,DIALOG_STYLE_MSGBOX,"Server Rules","Here at Las Venturas Cops And Robbers Roleplay, we enforce our rules at all times.\nThese rules should be followed to prevent being banned, kicked, jail, ECT.\nThe server rules can be found in the command '/rules', but you need to read them before you register.\nNo Random Killing / Hit Contracts / DeathMatching / TeamKilling/ Heli Killing\nNo Hacking / Cheating/ Gitching/ Bugging/ Spamming/ Flaming\nNo Special Effect Cleo Mods. No Shooting Inside The RPL. Don't abuse /votekick.\nRespect other players and administrators. Speak only English in main chat.\nNo Vehicle Ramming At All. Don't say things like 'FUCK YOU' a lot.\nDriver drive by's are NOT allowed. Only Passengers may shoot from the vehicle.\nCivilian(s) may only shoot PD, S.W.A.T. & Army Officers if they are Orange or Red.\nNo disrespectful comments or remarks of any sort. No Advertising.\nThese are just the basic rules, see the full list at www.LasVenturas.Net","Accept", "Reject");

// Thanks


Re: My dialog is too long. - TouR - 23.10.2010

You can split them to 2 dialogs man, Use \n Next Page at the first one


Re: My dialog is too long. - Las Venturas CNR - 23.10.2010

Quote:
Originally Posted by tour15
View Post
You can split them to 2 dialogs man, Use \n Next Page at the first one

I've already got some


"\n" 's in there...


Re: My dialog is too long. - MrDeath537 - 23.10.2010

Try it:

pawn Code:
// Top of script:
new MyText[1024] = "Here at Las Venturas Cops And Robbers Roleplay, we enforce our rules at all times.\nThese rules should be followed to prevent being banned, kicked, jail, ECT.\nThe server rules can be found in the command '/rules', but you need to read them before you register.\nNo Random Killing / Hit Contracts / DeathMatching / TeamKilling/ Heli Killing\nNo Hacking / Cheating/ Gitching/ Bugging/ Spamming/ Flaming\nNo Special Effect Cleo Mods. No Shooting Inside The RPL. Don't abuse /votekick.\nRespect other players and administrators. Speak only English in main chat.\nNo Vehicle Ramming At All. Don't say things like 'FUCK YOU' a lot.\nDriver drive by's are NOT allowed. Only Passengers may shoot from the vehicle.\nCivilian(s) may only shoot PD, S.W.A.T. & Army Officers if they are Orange or Red.\nNo disrespectful comments or remarks of any sort. No Advertising.\nThese are just the basic rules, see the full list at www.LasVenturas.Net";


// Dialog line:
ShowPlayerDialog(playerid,20,DIALOG_STYLE_MSGBOX,"Server Rules",MyText,"Accept", "Reject");



Re: My dialog is too long. - Las Venturas CNR - 23.10.2010

Quote:
Originally Posted by MrDeath
View Post
Try it:

pawn Code:
// Top of script:
new MyText[1024] = "Here at Las Venturas Cops And Robbers Roleplay, we enforce our rules at all times.\nThese rules should be followed to prevent being banned, kicked, jail, ECT.\nThe server rules can be found in the command '/rules', but you need to read them before you register.\nNo Random Killing / Hit Contracts / DeathMatching / TeamKilling/ Heli Killing\nNo Hacking / Cheating/ Gitching/ Bugging/ Spamming/ Flaming\nNo Special Effect Cleo Mods. No Shooting Inside The RPL. Don't abuse /votekick.\nRespect other players and administrators. Speak only English in main chat.\nNo Vehicle Ramming At All. Don't say things like 'FUCK YOU' a lot.\nDriver drive by's are NOT allowed. Only Passengers may shoot from the vehicle.\nCivilian(s) may only shoot PD, S.W.A.T. & Army Officers if they are Orange or Red.\nNo disrespectful comments or remarks of any sort. No Advertising.\nThese are just the basic rules, see the full list at www.LasVenturas.Net";


// Dialog line:
ShowPlayerDialog(playerid,20,DIALOG_STYLE_MSGBOX,"Server Rules",MyText,"Accept", "Reject");
Now on the line that has the message:


G:\SA-MP Shit\Cops And Robbers\gamemodes\CNR.pwn(10 : error 075: input line too long (after substitutions)


Re: My dialog is too long. - [L3th4l] - 23.10.2010

Use this:

pawn Code:
new MyText[1024] = "Here at Las Venturas Cops And Robbers Roleplay, we enforce our rules at all times.\nThese rules should be followed to prevent being banned, kicked, jail, ECT.\n";
strcat(MyText, "The server rules can be found in the command '/rules', but you need to read them before you register.\nNo Random Killing / Hit Contracts / DeathMatching / TeamKilling/ Heli Killing\n");
strcat(MyText, "No Hacking / Cheating/ Gitching/ Bugging/ Spamming/ Flaming\nNo Special Effect Cleo Mods. No Shooting Inside The RPL. Don't abuse /votekick.\nRespect other players and administrators. Speak only English in main chat.\n");
strcat(MyText, "No Vehicle Ramming At All. Don't say things like 'FUCK YOU' a lot.\nDriver drive by's are NOT allowed. Only Passengers may shoot from the vehicle.\n");
strcat(MyText, "Civilian(s) may only shoot PD, S.W.A.T. & Army Officers if they are Orange or Red.\nNo disrespectful comments or remarks of any sort. No Advertising.\n");
strcat(MyText, "These are just the basic rules, see the full list at www.LasVenturas.Net");

ShowPlayerDialog(playerid, 20, DIALOG_STYLE_MSGBOX, "Server Rules" ,MyText, "Accept", "Reject");



Respuesta: My dialog is too long. - Zouke! - 23.10.2010

Try this:

mytext1[512] = " " // a part of the text
mytext2[512] = " " // the other part

format(string, sizeof(string), "%s %s", mytext1,mytext2);
ShowPlayerDialog(playerid,20,DIALOG_STYLE_MSGBOX," Server Rules",string,"Accept", "Reject");


Re: My dialog is too long. - MrDeath537 - 23.10.2010

Quote:
Originally Posted by Las Venturas CNR
View Post
Now on the line that has the message:


G:\SA-MP Shit\Cops And Robbers\gamemodes\CNR.pwn(10 : error 075: input line too long (after substitutions)
D:.

pawn Code:
// Top of script
new MyText[1024] = "Here at Las Venturas Cops And Robbers Roleplay, we enforce our rules at all times.\nThese rules should\
 be followed to prevent being banned, kicked, jail, ECT.\nThe server rules can be found in the command '/rules', but you\
 need to read them before you register.\nNo Random Killing / Hit Contracts / DeathMatching / TeamKilling/ Heli Killing\nNo Hacking\
 / Cheating/ Gitching/ Bugging/ Spamming/ Flaming\nNo Special Effect Cleo Mods. No Shooting Inside The RPL. Don't abuse /votekick.\n\
Respect other players and administrators. Speak only English in main chat.\nNo Vehicle Ramming At All. Don't say things like 'FUCK YOU'\
 a lot.\nDriver drive by's are NOT allowed. Only Passengers may shoot from the vehicle.\nCivilian(s) may only shoot PD, S.W.A.T. & Army Officers\
 if they are Orange or Red.\nNo disrespectful comments or remarks of any sort. No Advertising.\nThese are just the basic rules, see the full list at\
 www.LasVenturas.Net"
;


// Dialog lialog
ShowPlayerDialog(playerid,20,DIALOG_STYLE_MSGBOX,"Server Rules",MyText,"Accept", "Reject");


It should work


Re: My dialog is too long. - Las Venturas CNR - 23.10.2010

Quote:
Originally Posted by [L3th4l]
View Post
Use this:

pawn Code:
new MyText[1024] = "Here at Las Venturas Cops And Robbers Roleplay, we enforce our rules at all times.\nThese rules should be followed to prevent being banned, kicked, jail, ECT.\n";
strcat(MyText, "The server rules can be found in the command '/rules', but you need to read them before you register.\nNo Random Killing / Hit Contracts / DeathMatching / TeamKilling/ Heli Killing\n");
strcat(MyText, "No Hacking / Cheating/ Gitching/ Bugging/ Spamming/ Flaming\nNo Special Effect Cleo Mods. No Shooting Inside The RPL. Don't abuse /votekick.\nRespect other players and administrators. Speak only English in main chat.\n");
strcat(MyText, "No Vehicle Ramming At All. Don't say things like 'FUCK YOU' a lot.\nDriver drive by's are NOT allowed. Only Passengers may shoot from the vehicle.\n");
strcat(MyText, "Civilian(s) may only shoot PD, S.W.A.T. & Army Officers if they are Orange or Red.\nNo disrespectful comments or remarks of any sort. No Advertising.\n");
strcat(MyText, "These are just the basic rules, see the full list at www.LasVenturas.Net");

ShowPlayerDialog(playerid, 20, DIALOG_STYLE_MSGBOX, "Server Rules" ,MyText, "Accept", "Reject");

Works, but the only error is that it's saying strcat is already identified.

G:\SA-MP Shit\Cops And Robbers\gamemodes\CNR.pwn(111) : error 021: symbol already defined: "strcat"

So would I just go like:


pawn Code:
new MyText[1024] = "Here at Las Venturas Cops And Robbers Roleplay, we enforce our rules at all times.\nThese rules should be followed to prevent being banned, kicked, jail, ECT.\n";
strcat1(MyText, "The server rules can be found in the command '/rules', but you need to read them before you register.\nNo Random Killing / Hit Contracts / DeathMatching / TeamKilling/ Heli Killing\n");
strcat2(MyText, "No Hacking / Cheating/ Gitching/ Bugging/ Spamming/ Flaming\nNo Special Effect Cleo Mods. No Shooting Inside The RPL. Don't abuse /votekick.\nRespect other players and administrators. Speak only English in main chat.\n");
strcat3(MyText, "No Vehicle Ramming At All. Don't say things like 'FUCK YOU' a lot.\nDriver drive by's are NOT allowed. Only Passengers may shoot from the vehicle.\n");
strcat4(MyText, "Civilian(s) may only shoot PD, S.W.A.T. & Army Officers if they are Orange or Red.\nNo disrespectful comments or remarks of any sort. No Advertising.\n");
strcat5(MyText, "These are just the basic rules, see the full list at www.LasVenturas.Net");

Or would that simply cause more issues?


Re: My dialog is too long. - Las Venturas CNR - 23.10.2010

Quote:
Originally Posted by MrDeath
View Post
D:.

pawn Code:
// Top of script
new MyText[1024] = "Here at Las Venturas Cops And Robbers Roleplay, we enforce our rules at all times.\nThese rules should\
 be followed to prevent being banned, kicked, jail, ECT.\nThe server rules can be found in the command '/rules', but you\
 need to read them before you register.\nNo Random Killing / Hit Contracts / DeathMatching / TeamKilling/ Heli Killing\nNo Hacking\
 / Cheating/ Gitching/ Bugging/ Spamming/ Flaming\nNo Special Effect Cleo Mods. No Shooting Inside The RPL. Don't abuse /votekick.\n\
Respect other players and administrators. Speak only English in main chat.\nNo Vehicle Ramming At All. Don't say things like 'FUCK YOU'\
 a lot.\nDriver drive by's are NOT allowed. Only Passengers may shoot from the vehicle.\nCivilian(s) may only shoot PD, S.W.A.T. & Army Officers\
 if they are Orange or Red.\nNo disrespectful comments or remarks of any sort. No Advertising.\nThese are just the basic rules, see the full list at\
 www.LasVenturas.Net"
;


// Dialog lialog
ShowPlayerDialog(playerid,20,DIALOG_STYLE_MSGBOX,"Server Rules",MyText,"Accept", "Reject");


It should work

Code:
G:\SA-MP Shit\Cops And Robbers\gamemodes\CNR.pwn(114) : error 075: input line too long (after substitutions)
G:\SA-MP Shit\Cops And Robbers\gamemodes\CNR.pwn(115) : error 037: invalid string (possibly non-terminated string)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.

Same errors.