My dialog is too long.
#1

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
Reply
#2

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

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...
Reply
#4

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");
Reply
#5

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)
Reply
#6

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");
Reply
#7

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");
Reply
#8

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
Reply
#9

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?
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)