dialog problem
#1

i have a problem i cant start new line the dialog msg box. the code it. the /n doesnt work

Code:
ShowPlayerDialog(playerid,1,0,"Rules","No Random Killing / hit contracts / DeathMatching / TeamKilling/nNo Hacking / Cheating/nNo Bitching/nSpeak only English in main chat/nHitmen can only kill players on there /listhits/nDo not go on a cop killing spree just because you are wanted/nRead /pc for a list of colour relevance","Accept","Quit");
there all in 1 line only. pls help
Reply
#2

pawn Code:
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Rules", "No Random Killing /nhit contracts /nDeathMatching /nTeamKilling/nNo Hacking /nCheating/nNo Bitching/nSpeak only English in main chat/nHitmen can only kill players on there /nlisthits/nDo not go on a cop killing spree just because you are wanted/nRead /npc for a list of colour relevance", "Accept","Quit");
It should be like this :
[pawn]
ShowPlayerDialog(playerid, [DIALOGID], [DIALOG STYLE], "Title", "message", "Button 1", "Button 2");

Remember : When your doing it in row, you must put n after slashes
Reply
#3

i make like that

Code:
ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX ,"Rules","No Random Killing / hit contracts / DeathMatching / TeamKilling /nNo Hacking / Cheating /nNo Bitching /nSpeak only English in main chat /nHitmen can only kill players on there /listhits /nDo not go on a cop killing spree just because you are wanted /nRead /pc for a list of colour relevance","Accept","Quit");
but still the /n doesnt work i mean in game all msg are in one line.
Reply
#4

Quote:
Originally Posted by billiout
i make like that

Code:
ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX ,"Rules","No Random Killing / hit contracts / DeathMatching / TeamKilling /nNo Hacking / Cheating /nNo Bitching /nSpeak only English in main chat /nHitmen can only kill players on there /listhits /nDo not go on a cop killing spree just because you are wanted /nRead /pc for a list of colour relevance","Accept","Quit");
but still the /n doesnt work i mean in game all msg are in one line.
Thats because you must put n after each slashes
here :
pawn Code:
ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX ,"Rules","No Random Killing/nhit contracts /nDeathMatching /nTeamKilling /nNo Hacking /nCheating /nNo Bitching /nSpeak only English in main chat /nHitmen can only kill players on there /nlisthits/nDo not go on a cop killing spree just because you are wanted/nRead /npc for a list of colour relevance","Accept","Quit");
Reply
#5

Quote:
Originally Posted by ViruZZzZ_ChiLLL
Quote:
Originally Posted by billiout
i make like that

Code:
ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX ,"Rules","No Random Killing / hit contracts / DeathMatching / TeamKilling /nNo Hacking / Cheating /nNo Bitching /nSpeak only English in main chat /nHitmen can only kill players on there /listhits /nDo not go on a cop killing spree just because you are wanted /nRead /pc for a list of colour relevance","Accept","Quit");
but still the /n doesnt work i mean in game all msg are in one line.
Thats because you must put n after each slashes
here :
pawn Code:
ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX ,"Rules","No Random Killing/nhit contracts /nDeathMatching /nTeamKilling /nNo Hacking /nCheating /nNo Bitching /nSpeak only English in main chat /nHitmen can only kill players on there /nlisthits/nDo not go on a cop killing spree just because you are wanted/nRead /npc for a list of colour relevance","Accept","Quit");
i dont want it for all slashes because 2 of them are commands.
Reply
#6

Quote:
Originally Posted by billiout
Quote:
Originally Posted by ViruZZzZ_ChiLLL
Quote:
Originally Posted by billiout
i make like that

Code:
ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX ,"Rules","No Random Killing / hit contracts / DeathMatching / TeamKilling /nNo Hacking / Cheating /nNo Bitching /nSpeak only English in main chat /nHitmen can only kill players on there /listhits /nDo not go on a cop killing spree just because you are wanted /nRead /pc for a list of colour relevance","Accept","Quit");
but still the /n doesnt work i mean in game all msg are in one line.
Thats because you must put n after each slashes
here :
pawn Code:
ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX ,"Rules","No Random Killing/nhit contracts /nDeathMatching /nTeamKilling /nNo Hacking /nCheating /nNo Bitching /nSpeak only English in main chat /nHitmen can only kill players on there /nlisthits/nDo not go on a cop killing spree just because you are wanted/nRead /npc for a list of colour relevance","Accept","Quit");
i dont want it for all slashes because 2 of them are commands.
Then just remove the slashes if you want something to be in the same row.

Example :
pawn Code:
ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX ,"Rules","No Random Killing hit contracts DeathMatching TeamKilling /nNo Hacking /nCheating /nNo Bitching /nSpeak only English in main chat /nHitmen can only kill players on there /nlisthits/nDo not go on a cop killing spree just because you are wanted/nRead /npc for a list of colour relevance","Accept","Quit");
Reply
#7

i copy paste your line and doesnt work again.
Reply
#8

what do you want the dialog do?
Reply
#9

What do you mean it doesn't work?
The dialog doesn't show up? Or what
you said a while ago i dont want it for all slashes because 2 of them are commands.
Reply
#10

i mean i want to show up in the dialog window in the game like this

No Random Killing / hit contracts / DeathMatching / TeamKilling
No Hacking / Cheating
No Bitching
Speak only English in main chat
Hitmen can only kill players on there /listhits
Do not go on a cop killing spree just because you are wanted
Read /pc for a list of colour relevance

its a dialog to show the rules
Reply
#11

Okay, copy and paste this :
pawn Код:
#define RULES 231323 // on top of script

ShowPlayerDialog(playerid, RULES, DIALOG_STYLE_MSGBOX, "No Random Killing / Hit contracts / DeathMatching / TeamKilling\nNo hacking / Cheating\nNo Bitching\nSpeak only English in main chat\nHitmen can only kill players on there /listhits\nDo not go on a cop killing spree just because you are wanted\nRead /pc for a list of colour relevance", "Done", "Cancel");
You know what our problem was?? We were putting it like this /n instead of \n XD
Reply
#12

Код:
ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX ,"Rules","No Random Killing / hit contracts / DeathMatching / TeamKilling /nNo Hacking / Cheating /nNo Bitching /nSpeak only English in main chat /nHitmen can only kill players on there /listhits /nDo not go on a cop killing spree just because you are wanted /nRead /pc for a list of colour relevance","Accept","Quit");
this is o.o
Reply
#13

ahahahhah yeaaa is \n no /n -.<-<-<.<-<.z-<.<-.<-<.<-.<
Reply
#14

lol im a big noob

thanks ViruZZzZ_ChiLLL for help me. now worked. thanks again!!!!!!!!!!!
Reply
#15

Quote:
Originally Posted by billiout
lol im a big noob

thanks ViruZZzZ_ChiLLL for help me. now worked. thanks again!!!!!!!!!!!
np and remember to put the dialog id's really random, so you can avoid
dialog conflicts.
Reply
#16

Quote:
Originally Posted by ViruZZzZ_ChiLLL
Quote:
Originally Posted by billiout
lol im a big noob

thanks ViruZZzZ_ChiLLL for help me. now worked. thanks again!!!!!!!!!!!
np and remember to put the dialog id's really random, so you can avoid
dialog conflicts.
you mean not 1,2,3,4 etc id's?
Reply
#17

Quote:
Originally Posted by billiout
Quote:
Originally Posted by ViruZZzZ_ChiLLL
Quote:
Originally Posted by billiout
lol im a big noob

thanks ViruZZzZ_ChiLLL for help me. now worked. thanks again!!!!!!!!!!!
np and remember to put the dialog id's really random, so you can avoid
dialog conflicts.
you mean not 1,2,3,4 etc id's?
I mean really make it random like 123134234 not just only 1,2,3,4

or you could just define it on top of script #define DIALOGNAME 321321

so it will be
pawn Код:
ShowPlayerDialog(playerid, DIALOGNAME, .....)
Reply
#18

thanks again!!!!!!!!!!!!!!!!!!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)