Jump to content

Alexica721

Membru
  • Posts

    258
  • Joined

  • Last visited

    Never

Posts posted by Alexica721

  1. liniile

    [pawn]//==============================================================================

    // Send Admin in front of name

    //==============================================================================

    #if ADM_InMSG == true

    if (AccInfo[playerid][Hide] == 0)

    {

    if(AccInfo[playerid][Level] > 1)

    {

    new str3[256];

    format(str3, 256, "{FF0000}(Admin): %s", text);

    for(new gz=0;gz<200;gz++)

    if(IsPlayerConnected(gz))

    SendPlayerMessageToPlayer(gz, playerid, str3);

    else SendPlayerMessageToPlayer(gz, playerid, text);

    }

    return 0;

    }

    #endif

    {

          if ( AccInfo [ playerid ] [ Level ] == 0 )

        {

       

            new

                string [      256      ]

                pName  [ MAX_PLAYER_NAME ]

            ;

            GetPlayerName ( playerid , pName , sizeof ( pName ) ) ;

            format ( string , 256 , "%s: %s" , pName , text ) ;

            SCMTA ( 0xFFFFFFFF , string ) ;

        }

        return ( 0 ) ;

    }[/pawn]

  2. lam adaugat si numi mere

    trebuia sal sub cod correct?

    [pawn]

    E:\svr\filterscripts\LuxAdmin.pwn(581) : warning 217: loose indentation

    E:\svr\filterscripts\LuxAdmin.pwn(1131) : warning 211: possibly unintended assignment

    E:\svr\filterscripts\LuxAdmin.pwn(1139) : error 001: expected token: ";", but found "-identifier-"

    E:\svr\filterscripts\LuxAdmin.pwn(1139) : warning 217: loose indentation

    E:\svr\filterscripts\LuxAdmin.pwn(1139) : error 028: invalid subscript (not an array or too many subscripts): "pName"

    E:\svr\filterscripts\LuxAdmin.pwn(1139) : warning 215: expression has no effect

    E:\svr\filterscripts\LuxAdmin.pwn(1139) : error 001: expected token: ";", but found "]"

    E:\svr\filterscripts\LuxAdmin.pwn(1139) : fatal error 107: too many error messages on one line

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

    4 Errors.

    [/pawn]

    PS:am luxadmin

    se vedea din model

  3. Buna ziua sa-mp.ro

    am o problema cu chatul

    Intra un jucator pe server si are admin lv 0

    cand vrea el sa scrie ceva nu ii apare nik la chat

    Intru eu pe server(am nivel maxim) si cand scriu ceva imi apare

    prin urmare

    jucatorii nu pot tasta nimik in chat

    codul de la OnPlayerText

    [pawn]

    // Chat

    //==============================================================================

    #if ADM_InMSG == true

    if (AccInfo[playerid][Hide] == 0)

    {

    if(AccInfo[playerid][Level] > 1)

    {

    new str3[256];

    format(str3, 256, "{FF0000}(Admin): %s", text);

    for(new gz=0;gz<200;gz++)

    if(IsPlayerConnected(gz))

    SendPlayerMessageToPlayer(gz, playerid, str3);

    else SendPlayerMessageToPlayer(gz, playerid, text);

    }

    return 0;

    }

    #endif

    [/pawn]

  4.         [glow=blue,2,300]                                    Creare Server Hamachi

    1-Instalezi hamachi

    2-Dai pe buton de on/off =>vei astepta putin

    3-Dai click pe network si dai "create a new network"

    4-Explicatii

      #network id = numele

      #Password=o parola usor de memorat

      #Confirm Password=repeta parola de mai sus

    dupa ce ai creat serverul

    te duci pornesti serverul

    si serverul tau va avea ip-ul scris mai sus la hamachi

    ca si prietenii tai sa se poata juca ei trebuie sa intre pe  serverul tau hamachi

                                Tutorial Intrare pe servere de hamachi

    1-Instalezi Hamachi

    2-Il pornesti de pe butonul on/off

    3-Dai pe Network

    4-Dai Join an existing network

    5-Explicatii

      #Network ID=Numele serverului tau(de hamachi)

      #Password=parola aleasa de tine

    [/glow]

  5. public OnPlayerCommandText ( playerid , cmdtext [ ] ) // Publicul OnPlayerCommandText.

    {

      if ( !strcmp ( cmdtext , "/tdoff" , true ) ) // Comanda /tdoff.

      {

            TextDrawHideForPlayer ( playerid , HealthBar ) ; // Functia care ascude textdraw-ul.

            return ( 1 ) ; // Comanda reintoarce valoarea 1 (true).

      }

      return ( 0 ) ; // Publicul OnPlayerCommandText reintoarce mereu valoarea 0 (false).

    eroarea persista

  6. imi da erorile astea

    D:\sl\gamemodes\DKR.pwn(2643) : error 029: invalid expression, assumed zero

    D:\sl\gamemodes\DKR.pwn(2644) : error 010: invalid function or declaration

    D:\sl\gamemodes\DKR.pwn(2647) : error 010: invalid function or declaration

    D:\sl\gamemodes\DKR.pwn(2649) : error 054: unmatched closing brace ("}")

  7. am incercat comanda lui darky dar imi dau niste prostii

    comanda

    [pawn]

    public OnPlayerCommandText(playerid, cmdtext[])

    if ( !strcmp ( cmdtext , "/tdoff" ) )

      {

            TextDrawHideForPlayer ( playerid , /* Numele textdraw-ului. */ ) ;

            return ( 1 ) ;

      }[/pawn]

    erori

    D:\server\filterscripts\lgts.pwn(35) : warning 217: loose indentation

    D:\server\filterscripts\lgts.pwn(47) : warning 217: loose indentation

    D:\server\filterscripts\lgts.pwn(48) : warning 217: loose indentation

    D:\server\filterscripts\lgts.pwn(53) : warning 217: loose indentation

    D:\server\filterscripts\lgts.pwn(68) : warning 217: loose indentation

    D:\server\filterscripts\lgts.pwn(69) : warning 217: loose indentation

    D:\server\filterscripts\lgts.pwn(97) : error 029: invalid expression, assumed zero

    D:\server\filterscripts\lgts.pwn(97) : error 035: argument type mismatch (argument 2)

    D:\server\filterscripts\lgts.pwn(102) : warning 209: function "OnPlayerCommandText" should return a value

    Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

    2 Errors.

×
×
  • 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.