[Help] - Input Line Too Long
#1

Is there any way to shorten this:
pawn Код:
ShowPlayerDialog(playerid, PASS_DIALOG3, DIALOG_STYLE_MSGBOX,"Roleplay Rules [2]/[4]","There are a few rules that you will need to respect and not violate them:\n\n 1.) - DeathMatching: Killing someone without some special reason\n\t-> Can result a Warning or a Big Fine.\n\n 2.) - PowerGaming: Forcing someone to do something Eg.: /me puts his tregger near Michael's head and pulls it.\n\t-> Can result a Warning or a Big Fine.\n\n 3.) - MetaGaming: Using OOC knowledge ICly.\n\t-> Can result a Warning or a Small Fine.\n\n 4.) - Drive-by: Killing while driving(You CAN shoot as a Passanger!).\n\t-> Can result a Warning or a Small Fine.","Next","Cancel");
Reply
#2

Well you can use 2 dialogs for this... add a "\n Next" at the first one and "\n Back" at the second one
Reply
#3

Quote:
Originally Posted by Alex_Valde
Посмотреть сообщение
Is there any way to shorten this:
pawn Код:
ShowPlayerDialog(playerid, PASS_DIALOG3, DIALOG_STYLE_MSGBOX,"Roleplay Rules [2]/[4]","There are a few rules that you will need to respect and not violate them:\n\n 1.) - DeathMatching: Killing someone without some special reason\n\t-> Can result a Warning or a Big Fine.\n\n 2.) - PowerGaming: Forcing someone to do something Eg.: /me puts his tregger near Michael's head and pulls it.\n\t-> Can result a Warning or a Big Fine.\n\n 3.) - MetaGaming: Using OOC knowledge ICly.\n\t-> Can result a Warning or a Small Fine.\n\n 4.) - Drive-by: Killing while driving(You CAN shoot as a Passanger!).\n\t-> Can result a Warning or a Small Fine.","Next","Cancel");
pawn Код:
ShowPlayerDialog(playerid, PASS_DIALOG3, DIALOG_STYLE_MSGBOX,"Roleplay Rules [2]/[4]",
"There are a few rules that you will need to respect and not violate them:\n\n \
1.) - DeathMatching: Killing someone without some special reason\n\t-> Can result a Warning or a Big Fine.\n\n \

2.) - PowerGaming: Forcing someone to do something Eg.: /me puts his tregger near Michael's head and pulls it.\n\t-> Can result a Warning or a Big Fine.\n\n \
3.) - MetaGaming: Using OOC knowledge ICly.\n\t-> Can result a Warning or a Small Fine.\n\n \
4.) - Drive-by: Killing while driving(You CAN shoot as a Passanger!).\n\t-> Can result a Warning or a Small Fine."

,"Next","Cancel");
Try that.
Reply
#4

Nope, I tryed that and I get errors
Код:
Roleplay\gamemodes\razer.pwn(4210 -- 4214) : error 075: input line too long (after substitutions)
Roleplay\gamemodes\razer.pwn(4215) : error 017: undefined symbol "There"
Roleplay\gamemodes\razer.pwn(4215) : error 017: undefined symbol "are"
Roleplay\gamemodes\razer.pwn(4215) : error 017: undefined symbol "a"
Roleplay\gamemodes\razer.pwn(4215) : fatal error 107: too many error messages on one line
On those lines... :S
Reply
#5

Not sure :/
pawn Код:
ShowPlayerDialog(playerid, PASS_DIALOG3, DIALOG_STYLE_MSGBOX,"Roleplay Rules [2]/[4]", "There are a few rules that you will need to respect and not violate them:\n\n \
1.) - DeathMatching: Killing someone without some special reason\n\t-> \
Can result a Warning or a Big Fine.\n\n \
2.) - PowerGaming: Forcing someone to do something Eg.: /me puts his tregger near Michael's head and pulls it.\n \
\t-> Can result a Warning or a Big Fine.\n\n \
3.) - MetaGaming: Using OOC knowledge ICly.\n \
\t-> Can result a Warning or a Small Fine.\n\n \
4.) - Drive-by: Killing while driving(You CAN shoot as a Passanger!).\n \
\t-> Can result a Warning or a Small Fine."
,
"Next","Cancel");
Reply
#6

Damn, still doesn't work... :S

I really don't know what can I do to break a text or something else.
Reply
#7

Simply use two dialogs.
Reply
#8

Maybe without these slashes.

pawn Код:
ShowPlayerDialog(playerid, PASS_DIALOG3, DIALOG_STYLE_MSGBOX,"Roleplay Rules [2]/[4]", "There are a few rules that you will need to respect and not violate them:\n\n
1.) - DeathMatching: Killing someone without some special reason\n\t->
Can result a Warning or a Big Fine.\n\n
2.) - PowerGaming: Forcing someone to do something Eg.: /me puts his tregger near Michael's head and pulls it.\n
\t-> Can result a Warning or a Big Fine.\n\n
3.) - MetaGaming: Using OOC knowledge ICly.\n
\t-> Can result a Warning or a Small Fine.\n\n
4.) - Drive-by: Killing while driving(You CAN shoot as a Passanger!).\n
\t-> Can result a Warning or a Small Fine."
,
"Next","Cancel");
If it still doesn't work, I suggest you to listen to Realcop.
Reply
#9

https://sampwiki.blast.hk/wiki/Strcat
Reply
#10

Yeah, doesn't work And I'll stick to the two dialogs.

I thought it would look cooler but... Something else was stronger than me. :P

Thanks for helping me. I appreciate it.


EDIT: And I'll give it a shoot what Garsino say'd.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)