Jump to content

calin1996

Membru
  • Posts

    177
  • Joined

  • Last visited

Posts posted by calin1996

  1. ca sa mai "Remediezi putin "problema apasa ctrl+z si este ca un "undo" adica iti pune la loc ce ai sters. asta doar daca nu ai inchis pawno-ul dupa ce ti-a dat eroarea si vezi ca problema este de la junkbuster baga ultima versiune si vezi daca mai ai probleme

    Am facut treaba asta si pana sa nu pun comanda nu facea asa ...

  2. [pawn] if (strcmp(cmd, "/job", true) == 0)

    {

        if(IsPlayerConnected(playerid))

        {

    GetPlayerName(playerid, sendername, sizeof(sendername));

            if(IsACop(playerid))

    {

    new x_nr[256];

    x_nr = strtok(cmdtext, idx);

    if(!strlen(x_nr))

    {

    SendClientMessage(playerid, COLOR_WHITE, "UTILIZEAZA: /job [Avocat,Mecanic,etc.]");

    return 1;

    }

    if(strcmp(x_nr,"Avocat",true) == 0)

    {

    if(PlayerInfo[playerid][pJob] == 0)

    {

    if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,671.5444,-520.1309,16.3359))

      {

      GettingJob[playerid] = 2;

      }

      else

      {

          SendClientMessage(playerid, COLOR_GREY, "  Nu esti la un job !");

      }

    }

    else

    {

        SendClientMessage(playerid, COLOR_GREY, "  Ai deja un job, scrie /quitjob pentru a renunta la job !");

    }

    }//not connected

        return 1;

    }[/pawn]

    Si erorile sunt:

    [pawn]D:\lucru\GMM\pawno\include\JunkBuster.inc(1503) : error 004: function "JB_Ban" is not implemented

    D:\lucru\GMM\pawno\include\JunkBuster.inc(1521) : error 004: function "JB_Ban" is not implemented

    D:\lucru\GMM\pawno\include\JunkBuster.inc(1546) : error 004: function "JB_Ban" is not implemented

    D:\lucru\GMM\pawno\include\JunkBuster.inc(1572) : error 004: function "JB_Ban" is not implemented

    D:\lucru\GMM\pawno\include\JunkBuster.inc(1589) : error 004: function "JB_Ban" is not implemented

    D:\lucru\GMM\pawno\include\JunkBuster.inc(1615) : error 004: function "JB_Ban" is not implemented

    D:\lucru\GMM\pawno\include\JunkBuster.inc(1624) : error 004: function "JB_Ban" is not implemented

    D:\lucru\GMM\pawno\include\JunkBuster.inc(1634) : error 004: function "JB_Ban" is not implemented

    D:\lucru\GMM\pawno\include\JunkBuster.inc(1913) : error 004: function "JB_Ban" is not implemented

    D:\lucru\GMM\pawno\include\JunkBuster.inc(2086) : error 004: function "JB_Ban" is not implemented

    D:\lucru\GMM\pawno\include\JunkBuster.inc(2642) : error 004: function "JB_Ban" is not implemented

    D:\lucru\GMM\pawno\include\JunkBuster.inc(2666) : error 004: function "JB_Ban" is not implemented

    D:\lucru\GMM\pawno\include\JunkBuster.inc(2685) : error 004: function "JB_Ban" is not implemented

    D:\lucru\GMM\pawno\include\JunkBuster.inc(2956) : error 004: function "JB_Ban" is not implemented

    D:\lucru\GMM\pawno\include\JunkBuster.inc(3109) : error 004: function "JB_Ban" is not implemented

    D:\lucru\GMM\pawno\include\JunkBuster.inc(3250) : warning 201: redefinition of constant/macro (symbol "OnPlayerEnterRaceCheckpoint")

    D:\lucru\1_3_samp\1.3 samp\gamemodes\lucru.pwn(2406) : error 004: function "ClearChatbox" is not implemented

    D:\lucru\1_3_samp\1.3 samp\gamemodes\lucru.pwn(2417) : error 004: function "ClearChatbox" is not implemented

    D:\lucru\1_3_samp\1.3 samp\gamemodes\lucru.pwn(2435) : error 004: function "ClearChatbox" is not implemented

    D:\lucru\1_3_samp\1.3 samp\gamemodes\lucru.pwn(2446) : error 004: function "ClearChatbox" is not implemented

    D:\lucru\1_3_samp\1.3 samp\gamemodes\lucru.pwn(2478) : error 004: function "ClearChatbox" is not implemented

    D:\lucru\1_3_samp\1.3 samp\gamemodes\lucru.pwn(2494) : error 004: function "ClearChatbox" is not implemented

    D:\lucru\1_3_samp\1.3 samp\gamemodes\lucru.pwn(2508) : error 004: function "ClearChatbox" is not implemented

    D:\lucru\1_3_samp\1.3 samp\gamemodes\lucru.pwn(2521) : error 004: function "ClearChatbox" is not implemented

    D:\lucru\1_3_samp\1.3 samp\gamemodes\lucru.pwn(2534) : error 004: function "ClearChatbox" is not implemented

    D:\lucru\1_3_samp\1.3 samp\gamemodes\lucru.pwn(2547) : error 004: function "ClearChatbox" is not implemented

    D:\lucru\1_3_samp\1.3 samp\gamemodes\lucru.pwn(2558) : error 004: function "ClearChatbox" is not implemented

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

    26 Errors.

    [/pawn]

    Vreo sugestie??:((

  3. Mersi,merge dar mai am o problema,[pawn] warning 225: unreachable code[/pawn] pt ca am am adaugat asta:

    [pawn]if(strcmp(cmd, "/contract", true) == 0)

    {

        if(IsPlayerConnected(playerid))

      {

    tmp = strtok(cmdtext, idx);

    if(!strlen(tmp))

    {

    SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /contract [playerid/PartOfName] [amount]");

    return 1;

    }

    giveplayerid = ReturnUser(tmp);

    tmp = strtok(cmdtext, idx);

    if(!strlen(tmp))

    {

    SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /contract [playerid/PartOfName] [amount]");

    return 1;

    }

    moneys = strval(tmp);

    if(moneys < 1000 || moneys > 1000000) { SendClientMessage(playerid, COLOR_GREY, "  Contract money must be atleast $1000, and not more then $1000000!"); return 1; }

    if(PlayerInfo[playerid][pLevel] < 2)

    {

    SendClientMessage(playerid, COLOR_GRAD1, "You must be level 2 to place a Contract.");

    return 1;

    }

    if (IsPlayerConnected(giveplayerid))

    {

        if(giveplayerid != INVALID_PLAYER_ID)

        {

        if(PlayerInfo[giveplayerid][pMember] == 8 && PlayerInfo[playerid][pMember] == 8)

        {

            SendClientMessage(playerid, COLOR_GREY, "* Cannot place Contracts on your own Agency!");

            return 1;

        }

        else if(PlayerInfo[giveplayerid][pLeader] == 8 && PlayerInfo[playerid][pMember] == 8)

        {

            SendClientMessage(playerid, COLOR_GREY, "* Cannot place Contracts on your own Agency!");

            return 1;

        }

        else if(PlayerInfo[giveplayerid][pMember] == 8||PlayerInfo[giveplayerid][pLeader] == 8)

        {

            SendClientMessage(playerid, COLOR_GREY, "* Can't contract a Hitman !");

            return 1;

        }

        if(PlayerInfo[playerid][pAdmin] == 1)

        {

            SendClientMessage(playerid, COLOR_GREY, "* You may not place a contract on admin/testers on duty");

            return 1;

        }

        if(IsACop(giveplayerid) && moneys < 30000)

        {

            SendClientMessage(playerid, COLOR_GREY, "* Only $30000 or above can be placed as a Contract on Cops !");

            return 1;

        }

        if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "* You cannot Contract yourself!"); return 1; }

    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));

    playermoney = GetPlayerMoney(playerid);

    if (moneys > 0 && playermoney >= moneys)

    {

    SafeGivePlayerMoney(playerid, (0 - moneys));

    PlayerInfo[giveplayerid][pHeadValue]+=moneys;

    format(string, sizeof(string), "%s has placed a contract on %s, for $%d.",sendername, giveplayer, moneys);

    SendFamilyMessage(8, COLOR_YELLOW, string);

    format(string, sizeof(string), "* You placed a contract on %s, for $%d.",giveplayer, moneys);

    SendClientMessage(playerid, COLOR_WHITE, string);

    format(string, sizeof(string), "[iNFO]: %s (%d) has placed a contract on %s (%d) for $%d", sendername, playerid, giveplayer,giveplayerid, moneys);

    SendAdminMessage(COLOR_YELLOW,string);

    SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, "* Someone has placed a hit contract on you, you might want protection!");

    PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);

    }

    else

    {

    SendClientMessage(playerid, COLOR_GRAD1, "  Invalid transaction amount.");

    }

    }

    }

    else

    {

    format(string, sizeof(string), "  %d is not an active player.", giveplayerid);

    SendClientMessage(playerid, COLOR_GRAD1, string);

    }

    }

    return 1;

    }

    SendClientMessage(playerid,COLOR_GREY, "SERVER: You have Typed An Unknown Command, Type /help or /atalk if you need Help!");

    return 1;

    }[/pawn]

  4. [pawn] if(strcmp(cmd, "/healall", true) == 0)

    {

    if(PlayerInfo[playerid][pAdmin] >= 3)

    {

    GetPlayerName(playerid, sendername, sizeof(sendername));

    format(string, 256, "ADMININUL %s a setat tuturor playerilor 100 puncte de viata.", sendername);

    ABroadCast(COLOR_YELLOW,string,1);

          for(new i = 0; i < MAX_PLAYERS; i ++)

            {

              SetPlayerHealth(i,100);

    }

    }

    return 1;

    }

    [/pawn]

    Toate bracketurile sunt la locul lor cred.....

  5. [pawn]if(strcmp(cmd, "/withdraw", true) == 0)

    {

        if(IsPlayerConnected(playerid))

        {

            if(PlayerInfo[playerid][pLocal] == 103 || PlayerInfo[playerid][pLocal] == 102 || PlayerInfo[playerid][pLocal] == 117)

            {

    tmp = strtok(cmdtext, idx);

    if(!strlen(tmp))

    {

    SendClientMessage(playerid, COLOR_GRAD2, "UTILIZEAZA: /withdraw [suma]");

    format(string, sizeof(string), "  Ai %d RON In contul tau.", PlayerInfo[playerid][pAccount]);

    SendClientMessage(playerid, COLOR_GRAD3, string);

    return 1;

    }

    new cashdeposit = strval(tmp);

    if(!strlen(tmp))

    {

    SendClientMessage(playerid, COLOR_GRAD2, "UTILIZEAZA: /withdraw [suma]");

    format(string, sizeof(string), "  Ai %d RON in contul tau.", PlayerInfo[playerid][pAccount]);

    SendClientMessage(playerid, COLOR_GRAD3, string);

    return 1;

    }

    if (cashdeposit > PlayerInfo[playerid][pAccount] || cashdeposit < 1)

    {

    SendClientMessage(playerid, COLOR_GRAD2, "  Nu ai asa de mult !");

    return 1;

    }

        //ConsumingMoney[playerid] = 1;

    SafeGivePlayerMoney(playerid,cashdeposit);

    PlayerInfo[playerid][pAccount]=PlayerInfo[playerid][pAccount]-cashdeposit;

    format(string, sizeof(string), "  Ai scos suma de %d RON din contul tau. Total Cont: %d RON ", cashdeposit,PlayerInfo[playerid][pAccount]);

    SendClientMessage(playerid, COLOR_YELLOW, string);

    return 1;

    }

    else

    {

      SendClientMessage(playerid, COLOR_GREY, "  Nu esti la banca !");

                return 1;

    }

    }

    return 1;

    }[/pawn]

    Creez obiectul ATM,Iar cumva aici daca imi puteti da un ex.,la coordonatele alea cand cineva fol. /withdraw sa functioneze ca la banca!

    NU MAI TREBUIE AM REUSIT DATORITA SAMPWIKI.COM :D

    In loc de  [pawn]if(PlayerInfo[playerid][pLocal] == 103 || PlayerInfo[playerid][pLocal] == 102 || PlayerInfo[playerid][pLocal] == 117)[/pawn] am pus [pawn]if(IsPlayerInRangeOfPoint(playerid, 3.0, 632.4916,-492.3098,16.3359))[/pawn] .Asta am scris pentru cei care nu stiu,sa nu mai faca posturi

  6. PAi sunt NPC nu sunt BOTI. CA sa pui BOT,player ce vrei tu sa zici sati apara in tab mai creezi un cont de ex ai:

    Administrator

    USer2

    Guest

    intri in ele si te conectezi pe serveru respectiv si duta dai log offsi ai boti pe server

  7. [pawn] if(!strcmp(cmd, "/banking", true))

    {

        if(IsPlayerConnected(playerid))

        {

        format(coordsstring, sizeof(coordsstring),"____________________| %s |____________________",name);

    SendClientMessage(playerid, COLOR_GREEN,coordsstring);

            format(coordsstring, sizeof(coordsstring), "Nivel:[%d] Sex:[%s] Varsta:[%d] Telefon:[%d] Nivel-Donator:[%s]", level,atext,age,pnumber,drank);

            format(coordsstring, sizeof(coordsstring), "Factura E-ON: - %d RON Dobanda: 0.%d \%", ebill,tmpintrate);

    format(coordsstring, sizeof(coordsstring), "Bani in portofel %d RON Bani in banca + %d RON Total %d RON]", banigramada,banibanca,totalsold);

    SendClientMessage(playerid, COLOR_GRAD6,coordsstring);

    SendClientMessage(playerid, COLOR_GREEN,"___________________________________________________________");

    }

    }[/pawn]

    Asta e comanda adaugata

    [pawn]D:\lucru\1_3_samp\1.3 samp\pawno\include\JunkBuster.inc(1503) : error 004: function "JB_Ban" is not implemented

    D:\lucru\1_3_samp\1.3 samp\pawno\include\JunkBuster.inc(1521) : error 004: function "JB_Ban" is not implemented

    D:\lucru\1_3_samp\1.3 samp\pawno\include\JunkBuster.inc(1546) : error 004: function "JB_Ban" is not implemented

    D:\lucru\1_3_samp\1.3 samp\pawno\include\JunkBuster.inc(1572) : error 004: function "JB_Ban" is not implemented

    D:\lucru\1_3_samp\1.3 samp\pawno\include\JunkBuster.inc(1589) : error 004: function "JB_Ban" is not implemented

    D:\lucru\1_3_samp\1.3 samp\pawno\include\JunkBuster.inc(1615) : error 004: function "JB_Ban" is not implemented

    D:\lucru\1_3_samp\1.3 samp\pawno\include\JunkBuster.inc(1624) : error 004: function "JB_Ban" is not implemented

    D:\lucru\1_3_samp\1.3 samp\pawno\include\JunkBuster.inc(1634) : error 004: function "JB_Ban" is not implemented

    D:\lucru\1_3_samp\1.3 samp\pawno\include\JunkBuster.inc(1913) : error 004: function "JB_Ban" is not implemented

    D:\lucru\1_3_samp\1.3 samp\pawno\include\JunkBuster.inc(2086) : error 004: function "JB_Ban" is not implemented

    D:\lucru\1_3_samp\1.3 samp\pawno\include\JunkBuster.inc(2642) : error 004: function "JB_Ban" is not implemented

    D:\lucru\1_3_samp\1.3 samp\pawno\include\JunkBuster.inc(2666) : error 004: function "JB_Ban" is not implemented

    D:\lucru\1_3_samp\1.3 samp\pawno\include\JunkBuster.inc(2685) : error 004: function "JB_Ban" is not implemented

    D:\lucru\1_3_samp\1.3 samp\pawno\include\JunkBuster.inc(2956) : error 004: function "JB_Ban" is not implemented

    D:\lucru\1_3_samp\1.3 samp\pawno\include\JunkBuster.inc(3109) : error 004: function "JB_Ban" is not implemented

    D:\lucru\1_3_samp\1.3 samp\pawno\include\JunkBuster.inc(3250) : warning 201: redefinition of constant/macro (symbol "OnPlayerEnterRaceCheckpoint")

    D:\lucru\1_3_samp\1.3 samp\gamemodes\lucru.pwn(2318) : error 004: function "ClearChatbox" is not implemented

    D:\lucru\1_3_samp\1.3 samp\gamemodes\lucru.pwn(2329) : error 004: function "ClearChatbox" is not implemented

    D:\lucru\1_3_samp\1.3 samp\gamemodes\lucru.pwn(2347) : error 004: function "ClearChatbox" is not implemented

    D:\lucru\1_3_samp\1.3 samp\gamemodes\lucru.pwn(2358) : error 004: function "ClearChatbox" is not implemented

    D:\lucru\1_3_samp\1.3 samp\gamemodes\lucru.pwn(2390) : error 004: function "ClearChatbox" is not implemented

    D:\lucru\1_3_samp\1.3 samp\gamemodes\lucru.pwn(2406) : error 004: function "ClearChatbox" is not implemented

    D:\lucru\1_3_samp\1.3 samp\gamemodes\lucru.pwn(2420) : error 004: function "ClearChatbox" is not implemented

    D:\lucru\1_3_samp\1.3 samp\gamemodes\lucru.pwn(2433) : error 004: function "ClearChatbox" is not implemented

    D:\lucru\1_3_samp\1.3 samp\gamemodes\lucru.pwn(2446) : error 004: function "ClearChatbox" is not implemented

    D:\lucru\1_3_samp\1.3 samp\gamemodes\lucru.pwn(2459) : error 004: function "ClearChatbox" is not implemented

    D:\lucru\1_3_samp\1.3 samp\gamemodes\lucru.pwn(2470) : error 004: function "ClearChatbox" is not implemented

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

    26 Errors.

    [/pawn]

    Si astea sunt erorile,ceva sugestii?

  8. [pawn]if(strcmp(cmd, "///spikema", true) ==0 || strcmp(cmd, "///skma", true) ==0)

    {

        if(IsPlayerConnected(playerid))

        {

    if(IsACop(playerid))

    {

        if(IsPlayerInAnyVehicle(playerid))

        {

            SendClientMessage(playerid, COLOR_GREY, "  Nu poti intinde banda de tepi din masina!");

            return 1;

        }

        new Float:plocx,Float:plocy,Float:plocz,Float:ploca;

            GetPlayerPos(playerid, plocx, plocy, plocz);

            GetPlayerFacingAngle(playerid,ploca);

            CreateStrip(plocx,plocy,plocz,ploca);

        return 1;

    }

    else

    {

    SendClientMessage(playerid, COLOR_GREY, "  Nu esti politist!");

    }

    }

    }

    if(strcmp(cmd, "/removespikes", true) ==0 || strcmp(cmd, "/rsk", true) ==0)

    {

        if(IsPlayerConnected(playerid))

        {

    if(IsACop(playerid))

    {

        if(IsPlayerInAnyVehicle(playerid))

        {

            SendClientMessage(playerid, COLOR_GREY, "  Nu poti inlatura banda de tepi din masina!");

            return 1;

        }

        DeleteClosestStrip(playerid);

        return 1;

    }

    else

    {

    SendClientMessage(playerid, COLOR_GREY, "  Nu esti politist!");

    }

    }

    }

    if(strcmp(cmd, "/remallspikes", true) ==0 || strcmp(cmd, "/rask", true) ==0)

    {

        if(IsPlayerConnected(playerid))

        {

    if(PlayerInfo[playerid][pRank] >= 5 && IsACop(playerid))

    {

        DeleteAllStrip();

        GetPlayerName(playerid, sendername, sizeof(sendername));

    format(string, sizeof(string), "DISPECER: Toate blocajele cu tepi din zona aiu fost scoase din ordinul lui %s.", sendername);

    for(new i = 0; i < MAX_PLAYERS; i++)

    {

    if(IsPlayerConnected(i))

    {

    if(IsACop(i))

    {

    SendClientMessage(i, TEAM_BLUE_COLOR, string);

    }

    }

    }

        return 1;

    }

    else

    {

    SendClientMessage(playerid, COLOR_GREY, "  Nu esti politist si sa ai peste grad 5!");

    }

    }

    }[/pawn]

    Cand dau /removespikes apare in chat ca iam scot dar ei inca sunt acolo,nu fac pana dar.....

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