How can I do that?
#1

How can I do that? http://imageshack.us/photo/my-images/141/samp005qg.png/ Please help me ... I searched but not found: (
Reply
#2

Image doesn't load. Use a host that isn't shit www.minus.com
Reply
#3

http://min.us/mbcH0qJ9ZW#1o
Reply
#4

very complex coding and indenting. But basically a dialog.
Reply
#5

That's done using \t (tabulate). It moves the line across to be aligned with the text above it.

For example:

pawn Код:
ShowPlayerDialog(playerid, DIALOG_NO_RESPONSE, DIALOG_STYLE_MSGBOX, "test", "Hello World!\t\t\tThis is aligned\nSomething that is longer\tWith this", "OK", "");
Gives:

Reply
#6

something like :
Quote:

COMMAND:cmds(playerid, params[])
{
if(Roman[playerid] == 0)
{
new BigString[1900];
strcat(BigString, "{6EF83C}|======================================== ========================================|\n", 1900 );
strcat(BigString, "{6EF83C}|\t\t\t\t[{0049FF}GENERAL COMMANDS{6EF83C}]\t\t\t\t\t |\n", 1900 );
strcat(BigString, "{6EF83C}|======================================== ========================================|\n", 1900 );
strcat(BigString, "{6EF83C}|======================================== ========================================|\n", 1900 );
strcat(BigString, "{6EF83C}|\t{F81414}Account\t{6EF83C}| {F81414}Player Commands\t{6EF83C}| {F81414}Player Commands\t{6EF83C}| {F81414}Player Commands\t {6EF83C}|\n", 1900 );
strcat(BigString, "{6EF83C}|======================================== ========================================|\n", 1900 );
strcat(BigString, "{6EF83C}|\t/register\t|\t/sex\t\t|\t/wepons\t|\t/laseroff\t |\n", 1900 );
strcat(BigString, "{6EF83C}|\t/login\t\t|\t/ad\t\t|\t/moviemode\t|\t/lasercol\t |\n", 1900 );
strcat(BigString, "{6EF83C}|\t/stats\t\t|\t/beer\t\t|\t/RO\t\t|\t/ninja\t\t |\n", 1900 );
strcat(BigString, "{6EF83C}|\t/time\t\t|\t/beeroff\t|\t/ENG\t\t|\t/mec\t\t |\n", 1900 );
strcat(BigString, "{6EF83C}|\t/changepass\t|\t/p\t\t|\t/pm\t\t|\t/wether\t |\n", 1900 );
strcat(BigString, "{6EF83C}|=================== |\t/l\t\t|\t/count\t\t|\t/rampages\t |\n", 1900 );
strcat(BigString, "{6EF83C}| {F81414}Vehicle commands\t{6EF83C}|\t/day\t\t|\t/kill\t\t|\t/rfound\t |\n", 1900 );
strcat(BigString, "{6EF83C}|=================== |\t/night\t\t|\t/animlist\t|\t/mitime\t |\n", 1900 );
strcat(BigString, "{6EF83C}|\t/v -name car \t|\t/sad\t\t|\t/sb\t\t|=================== |\n", 1900 );
strcat(BigString, "{6EF83C}|\t/tc1\t\t|\t/givecash\t|\t/smok\t\t|{F81414} AttachObjectToPlayer{6EF83C}|\n", 1900 );
strcat(BigString, "{6EF83C}|\t/tc2\t\t|\t/web\t\t|\t/gangwar\t|=================== |\n", 1900 );
strcat(BigString, "{6EF83C}|\t/tc3\t\t|\t/cmenu\t|\t/fs\t\t|\t/stophold\t |\n", 1900 );
strcat(BigString, "{6EF83C}|\t/neon\t\t|\t/plantbomb\t|\t/sunglasse\t|\t/laba\t\t |\n", 1900 );
strcat(BigString, "{6EF83C}|\t/tunar\t\t|\t/buydrungs\t|\t/down\t\t|\t/dildos\t\t |\n", 1900 );
strcat(BigString, "{6EF83C}|\t/flipp\t\t|\t/usedrungs\t|\t/brb\t\t|\t/dildos2\t |\n", 1900 );
strcat(BigString, "{6EF83C}|\t/locck\t\t|\t/snow\t\t|\t/--------\t\t|\t/toroman\t |\n", 1900 );
strcat(BigString, "{6EF83C}|\t/unlocck\t|\t/snowoff\t|\t/walkstyles\t|\t/scut\t\t |\n", 1900 );
strcat(BigString, "{6EF83C}|\t/up\t\t|\t/myskin\t|\t/laseron\t|\t/incred\t\t |\n", 1900 );
strcat(BigString, "{6EF83C}|\t/cpv\t\t|\t/nrg\t\t|\t/hold\t\t|\t\t\t |\n", 1900 );
strcat(BigString, "{6EF83C}|======================================== ========================================|\n", 1900 );
strcat(BigString, "{6EF83C} {0049FF}Press 2 to fix the car, you click to add {F81414}NITRO\n", 1900 );
strcat(BigString, " "W"Use the command "R"/bug "W"to report server errors or bugs\n", 1900 );
ShowPlayerDialog(playerid, 1000, DIALOG_STYLE_MSGBOX, "{6EF83C}----- {F81414}GENERAL COMMAND {6EF83C}-----", BigString, "-->oK<--","");
}

but do not know how to give me one thousand errors I need to add an include? please help me
Reply
#7

Show the errors. It really baffles me how people can post saying "plz i get 2000 error what i did wrong??" and don't actually post the errors. We can't guess what the errors are.
Reply
#8

Quote:

C:\Documents and Settings\alexandra\My Documents\prt.pwn(91) : error 017: undefined symbol "cmds"
C:\Documents and Settings\alexandra\My Documents\prt.pwn(92) : warning 217: loose indentation
C:\Documents and Settings\alexandra\My Documents\prt.pwn(93) : error 017: undefined symbol "Roman"
C:\Documents and Settings\alexandra\My Documents\prt.pwn(93) : warning 215: expression has no effect
C:\Documents and Settings\alexandra\My Documents\prt.pwn(93) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\alexandra\My Documents\prt.pwn(93) : error 029: invalid expression, assumed zero
C:\Documents and Settings\alexandra\My Documents\prt.pwn(93) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Errors.

I added the command :
Quote:

public OnPlayerCommandText(playerid, cmdtext[])
{

line is: 91 - COMMAND:cmds(playerid, params[])
92 - {
93- if(Roman[playerid] == 0)
Reply
#9

Sigh. Show the whole piece of code and mark which lines the errors are on.
Reply
#10

new Roman[MAX_PLAYERS]; at the top of the script.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)