SA-MP Forums Archive
NEEDED HELP WITH commands - 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: NEEDED HELP WITH commands (/showthread.php?tid=337489)



NEEDED HELP WITH commands - mickos - 26.04.2012

hey I'm working on a private server I understand how you can make commands
I am now working with / rules command
I understand how you create a command and I also understand how a menu because I use this

Show Player Dialog (playerid, 1, DIALOG_STYLE_MSGBOX, "/ rules", "1: No hacks or cheats or i will be banned! 2: No racism 3: Dont insult other players.", "Ok", "");

only now I'm stuck with a question how the rules among themselves for example if you get / rules type that you see this:

1: No hacks or cheats or i will be banned!
2: No racism
3: Dont insult other players.

I do not know how so if I get to make you get everything back together piece by 1, so if I / rules type I get so

1: No hacks or cheats or i will be banned! 2: No racism 3: Dont insult other players.

and I would like so:

1: No hacks or cheats or i will be banned!
2: No racism
3: Dont insult other players.

would someone there could help me or explain to me

thanks


Re: NEEDED HELP WITH commands - niels44 - 26.04.2012

you can simply use \n for that, \n means NEXT LINE, so for example if you want it like you said then do this in the dialog: 1: No hacks or cheats or i will be banned! \n2: No racism \n3: Dont insult other players.

i hope you understand me, also for a big space between places or else called a TAB use \t

i hope i helped you out

greets niels btw: im the first XD


Re: NEEDED HELP WITH commands - ]Rafaellos[ - 26.04.2012

pawn Код:
ShowPlaye Dialog (playerid, 1, DIALOG_STYLE_MSGBOX, "/ rules", "1: No hacks or cheats or i will be banned!\n 2: No racism\n 3: Dont insult other players.", "Ok", "");
Just add \n for space.

Edit: too late.


Re: NEEDED HELP WITH commands - mickos - 26.04.2012

Yes i understand it thank you guys i gonna try it out
Thanks