Jump to content
  • 0

Problema cu \t


onix09

Question

Sall... am si eu un dialog facut cu space'uri casa arate bine

[pawn]CMD:cmds(playerid, pramas[])

{

new BigString[3500];

strcat(BigString, "{00C0FF}|{FFFFFF}======================================================================{00C0FF}>\n", 3500 );

    strcat(BigString, "{00C0FF}|{FFFFFF}Comenzi Generale:                                                              \n", 3500 );

    strcat(BigString, "{00C0FF}|{FFFFFF}/cmds    {00C0FF}-> {FFFFFF}Iti arata toate comenzile disponibile.                \n", 3500 );

    strcat(BigString, "{00C0FF}|{FFFFFF}/teles  {00C0FF}-> {FFFFFF}Iti arata toate teleporturile disponibile.          \n", 3500 );

    strcat(BigString, "{00C0FF}|{FFFFFF}/rules  {00C0FF}-> {FFFFFF}Iti arata respectul, regulile!                      \n", 3500 );

    strcat(BigString, "{00C0FF}|{FFFFFF}/credits {00C0FF}-> {FFFFFF}Arata creatori serverului!.                        \n", 3500 );

    strcat(BigString, "{00C0FF}|{FFFFFF}======================================================================{00C0FF}>\n", 3500 );

    strcat(BigString, "{00C0FF}|{FFFFFF}Comenzi Secundare:                                                            \n", 3500 );

    strcat(BigString, "{00C0FF}|{F81414}/register  -> Te inregistrezi pe serverul SRC                                \n", 3500 );

    strcat(BigString, "{00C0FF}|{F81414}/login      -> Te logezi pe serverul SRC                                      \n", 3500 );

    strcat(BigString, "{00C0FF}|{F81414}/stats      -> Vizualizezi staticticile contului tau                          \n", 3500 );

    strcat(BigString, "{00C0FF}|{FFFFFF}/pm        -> Trimiti un mesaj unui player                                    \n", 3500 );

    strcat(BigString, "{00C0FF}|{F81414}/admins    -> Vezi/Afli ce Admini sunt ON pe server                          \n", 3500 );

    strcat(BigString, "{00C0FF}|{F81414}/vips      -> Vezo/Afli ce Player Vip sunt ON pe server                      \n", 3500 );

    strcat(BigString, "{00C0FF}|{FFFFFF}/top        -> Vizualizezi un Top cu Playeri Serverului SRC                    \n", 3500 );

    strcat(BigString, "{00C0FF}|{B7FF00}/cookies    -> Afli cate prajituri ai                                          \n", 3500 );

    strcat(BigString, "{00C0FF}|{B7FF00}/buycookies -> Cumperi prajituri                                              \n", 3500 );

    strcat(BigString, "{00C0FF}|{B7FF00}/eatcookies -> Mananci Prajituri                                              \n", 3500 );

    strcat(BigString, "{00C0FF}|{FFFFFF}/time      -> Vezi Cat Este Ceasul                                            \n", 3500 );

    strcat(BigString, "{00C0FF}|{F81414}/cpass      -> Iti Schimbi Parola                                              \n", 3500 );

    strcat(BigString, "{00C0FF}|{B7FF00}/cfacebook  -> Iti Creezi un Cont de Facebook                                  \n", 3500 );

    strcat(BigString, "{00C0FF}|{B7FF00}/facebook  -> Te uiti la Profilul Tau de FaceBook sau al altui Player        \n", 3500 );

    strcat(BigString, "{00C0FF}|{B7FF00}/flogin    -> Te loghezi pe contul tau de FaceBook                            \n", 3500 );

    strcat(BigString, "{00C0FF}|{B7FF00}/dfacebook  -> Iti stergi Contul de FaceBook                                  \n", 3500 );

    strcat(BigString, "{00C0FF}|{FFFFFF}/tune      -> Iti tunezi Masina                                              \n", 3500 );

    strcat(BigString, "{00C0FF}|{B7FF00}/fstyle    -> Iti Setezi Stilul de Lupta                                      \n", 3500 );

    strcat(BigString, "{00C0FF}|{B7FF00}/carcolor  -> Setezi Culoarea Masini in Care Esti                            \n", 3500 );

    strcat(BigString, "{00C0FF}|{F81414}/kill      -> Te Sinucizi!                                                    \n", 3500 );

    strcat(BigString, "{00C0FF}|{FFFFFF}/flip      -> Iti ridici AutoVehiculul in picioare                            \n", 3500 );

    strcat(BigString, "{00C0FF}|{FFFFFF}/jetpack    -> Faci rost De un JetPack                                        \n", 3500 );

    strcat(BigString, "{00C0FF}|{FFFFFF}/kickme    -> Iti dai singur Kick                                            \n", 3500 );

    strcat(BigString, "{00C0FF}|{B7FF00}/neon      -> Iti atasezi un neon la masina                                  \n", 3500 );

    strcat(BigString, "{00C0FF}|{FFFFFF}======================================================================{00C0FF}>\n", 3500 );

    strcat(BigString, "{00C0FF}|{FFFFFF}Legenda: {F81414}Rosu: Comenzi Importante | {FFFFFF}Alb: Comenzi Simple        \n", 3500 );

    strcat(BigString, "{00C0FF}|{FFFFFF}Legenda: {B7FF00}Lime: Comenzi FUN        | {00C0FF}Pagina2 - Mai Multe Comenzi\n", 3500 );

        strcat(BigString, "{00C0FF}|{FFFFFF}======================================================================{00C0FF}>\n", 3500 );

ShowPlayerDialog(playerid, 3112, DIALOG_STYLE_MSGBOX, "{00C0FF}------{FFFFFF}Comenzile Serverului{00C0FF}------", BigString, "OK","Pagina 2");

return 1;

}[/pawn]

Si normal, in joc nu apare space'ul bine :| Am inteles...dar de mult stiam defapt.. ca trebuie sa fac cu \t dialogul... dar nu stiu cum sa folosec \t... stiu ca pune un spatiu liber mai mare...dar cum imi dau seama cat imi trebuie ???????? Daca este cineva care ma poate ajuta... raman dator ! Am cautat si pe wiki, dar arata numai alte semne: http://wiki.sa-mp.com/wiki/Scripting_Basics

Le arata doar pe:

\0 NULL character Ends a string.

\n Line feed use \n for a new line in Linux (also works in Windows)

\r Carriage return Use \r\n for a new line in Windows

\\ Backslash Used to put an actual backslash in a string

\' Single quote Used to use an actual single quote as a character in single quotes (use: '\'')

\" Double quotes Used to put an actual double quote in a string

\xNNN; Hex number Used to set the character to the character represented by the hex number specified in place on NNN

\NNN; Number Used to set the character to the character represented by the number specified in place of NNN (see \0)

9zZndmN.png
Link to comment
Share on other sites

7 answers to this question

Recommended Posts

Si cica de ce astia nu stiu scripting...

A variable is basically a bit of memory, it's where data is stored and can be changed and read as required. Variables are one or more cells, a cell is 32 bits (4 bytes) big and by default signed so they can store from -2147483648 to 2147483647 (although -2147483648 is poorly defined in PAWN and gives odd results if displayed). A variable made from more than one cell is called an array, strings are a special type of array where each cell holds a character of the string (or 4 characters in packed strings, but they're not covered here).

Cand ii zice asa unui newbie, e clar l-a bagat in ceata.

Banner_2.png
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.