SA-MP Forums Archive
dialog problem - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: dialog problem (/showthread.php?tid=148812)



dialog problem - billiout - 19.05.2010

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


Re: dialog problem - ViruZZzZ_ChiLLL - 19.05.2010

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


Re: dialog problem - billiout - 19.05.2010

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.


Re: dialog problem - ViruZZzZ_ChiLLL - 19.05.2010

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



Re: dialog problem - billiout - 19.05.2010

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.


Re: dialog problem - ViruZZzZ_ChiLLL - 19.05.2010

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



Re: dialog problem - billiout - 19.05.2010

i copy paste your line and doesnt work again.


Re: dialog problem - iJumbo - 19.05.2010

what do you want the dialog do?


Re: dialog problem - ViruZZzZ_ChiLLL - 19.05.2010

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.


Re: dialog problem - billiout - 19.05.2010

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



Re: dialog problem - ViruZZzZ_ChiLLL - 19.05.2010

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


Re: dialog problem - iJumbo - 19.05.2010

Код:
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


Re: dialog problem - iJumbo - 19.05.2010

ahahahhah yeaaa is \n no /n -.<-<-<.<-<.z-<.<-.<-<.<-.<


Re: dialog problem - billiout - 19.05.2010

lol im a big noob

thanks ViruZZzZ_ChiLLL for help me. now worked. thanks again!!!!!!!!!!!


Re: dialog problem - ViruZZzZ_ChiLLL - 19.05.2010

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.


Re: dialog problem - billiout - 19.05.2010

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?


Re: dialog problem - ViruZZzZ_ChiLLL - 19.05.2010

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, .....)



Re: dialog problem - billiout - 19.05.2010

thanks again!!!!!!!!!!!!!!!!!!!