Jump to content

gabyskm96

Membru
  • Posts

    80
  • Joined

  • Last visited

Posts posted by gabyskm96

  1. va multumesc!! cu ajutorul raspunsurilor voastre  am rezolvat!! dar mai am 3 warings : [pawn]C:\DOCUME~1\Gaby\Desktop\BESTGA~1.0-R\GAMEMO~1\furios.pwn(4797) : warning 202: number of arguments does not match definition

    C:\DOCUME~1\Gaby\Desktop\BESTGA~1.0-R\GAMEMO~1\furios.pwn(10855) : warning 204: symbol is assigned a value that is never used: "TimeTimer"

    C:\DOCUME~1\Gaby\Desktop\BESTGA~1.0-R\GAMEMO~1\furios.pwn(10855 -- 48930) : warning 203: symbol is never used: "gCopPlayerSpawns"

    Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

    Header size:          10896 bytes

    Code size:          2152004 bytes

    Data size:          7610380 bytes

    Stack/heap size:      16384 bytes; estimated max. usage=5668 cells (22672 bytes)

    Total requirements: 9789664 bytes

    3 Warnings.

    [/pawn] va pun si linile imediat

  2. sall all am si eu niste probleme cu gm vreau sa stiu de ce imi da erorile astea dupa ce il modific si ii dau f5 [pawn]C:\DOCUME~1\Gaby\Desktop\furios.pwn(236) : warning 201: redefinition of constant/macro (symbol "COLOR_15th")

    C:\DOCUME~1\Gaby\Desktop\furios.pwn(10990) : warning 209: function "JB_OnPlayerConnect" should return a value

    C:\DOCUME~1\Gaby\Desktop\furios.pwn(32845) : error 021: symbol already defined: "strtok"

    C:\DOCUME~1\Gaby\Desktop\furios.pwn(32860) : error 047: array sizes do not match, or destination array is too small

    C:\DOCUME~1\Gaby\Desktop\furios.pwn(44871) : error 047: array sizes do not match, or destination array is too small

    C:\DOCUME~1\Gaby\Desktop\furios.pwn(45416) : error 047: array sizes do not match, or destination array is too small

    C:\DOCUME~1\Gaby\Desktop\furios.pwn(45749) : error 047: array sizes do not match, or destination array is too small

    C:\DOCUME~1\Gaby\Desktop\furios.pwn(47504) : warning 217: loose indentation

    C:\DOCUME~1\Gaby\Desktop\furios.pwn(50307) : warning 202: number of arguments does not match definition

    C:\DOCUME~1\Gaby\Desktop\furios.pwn(50307) : warning 202: number of arguments does not match definition

    C:\DOCUME~1\Gaby\Desktop\furios.pwn(64828) : warning 219: local variable "div" shadows a variable at a preceding level

    Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

    5 Errors.

    [/pawn] si cum as putea sa le rezolv. Multumesc din suflet!

  3. app nici comanda asta nu merge [pawn]//===============================================================================================//

    //---Comanda: /createcar---//

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

    if (strcmp(cmd, "/createcar", true) ==0 )

    {

    if(!IsPlayerAdmin(playerid)){return 1;}

    tmp = strtok(cmdtext,idx);

    if(!strlen(tmp)){return 1;}

    new vehiclemodel = strval(tmp);

    tmp = strtok(cmdtext,idx);

    if(!strlen(tmp)){return 1;}

    new color1 = strval(tmp);

    tmp = strtok(cmdtext,idx);

    if(!strlen(tmp)){return 1;}

    new color2 = strval(tmp);

    tmp = strtok(cmdtext,idx);

    if(!strlen(tmp)){return 1;}

    new price = strval(tmp);

    new Float:px,Float:py,Float:pz,Float:pa;

    GetPlayerPos(playerid,px,py,pz);

    GetPlayerFacingAngle(playerid,pa);

    Created++;

    VehicleSystem[Created][model]=vehiclemodel;

    VehicleSystem[Created][x]=px;

    VehicleSystem[Created][y]=py;

    VehicleSystem[Created][z]=pz;

    VehicleSystem[Created][a]=pa;

    VehicleSystem[Created][Farbe1]=color1;

    VehicleSystem[Created][Farbe2]=color2;

    VehicleSystem[Created][preis]=price;

    VehicleSystem[Created][owned]=0;

    VehicleSystem[Created][cLock]=1;

    strmid(VehicleSystem[Created][owner],"dealervehicle",0,128,128);

    new ccar = CreateVehicle(VehicleSystem[Created][model],VehicleSystem[Created][x],VehicleSystem[Created][y],VehicleSystem[Created][z],VehicleSystem[Created][a],VehicleSystem[Created][Farbe1],VehicleSystem[Created][Farbe2],600000);

    IDIS[ccar]=Created;

    SaveTool();

    return 1;

    }[/pawn]

  4. [pawn]else if(strcmp(x_nr,"sell",true) == 0)

    {

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

    {

    SendClientMessage(playerid, COLOR_WHITE, "Must be a admin of face when you sell car");

    return 1;

    }

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

    if(!IsPlayerInAnyVehicle(playerid)){return 1;}

    if(GetCreatorID(vehicleid)!=0)

    {

    new keycar = (dini_Int(PFile(playerid),"HaveCar"));

      if(keycar == 0) { GameTextForPlayer(playerid, "~w~You haven's got a car to sell !", 2500, 3); return 1; }

    tmp = strtok(cmdtext,idx);

    if(!strlen(tmp)){SendClientMessage(playerid,COLOR_GREY,"USAGE: /v sell [price]");return 1;}

    new Float:vx,Float:vy,Float:vz,Float:va;

    GetVehiclePos(GetPlayerVehicleID(playerid),vx,vy,vz);

    GetVehicleZAngle(GetPlayerVehicleID(playerid),va);

    VehicleSystem[GetCreatorID(vehicleid)][x]=vx;

    VehicleSystem[GetCreatorID(vehicleid)][y]=vy;

    VehicleSystem[GetCreatorID(vehicleid)][z]=vz;

    VehicleSystem[GetCreatorID(vehicleid)][a]=va;

    VehicleSystem[GetCreatorID(vehicleid)][preis]=strval(tmp);

    VehicleSystem[GetCreatorID(vehicleid)][owned]=0;

    VehicleSystem[GetCreatorID(vehicleid)][cLock]=1;

    strmid(VehicleSystem[GetCreatorID(vehicleid)][owner],"dealervehicle",0,128,128);

    format(string,sizeof(string),"PersonalsVehicles/Users/%s.ini",sendername);

    dini_Remove(string);

    SendClientMessage(playerid,COLOR_WHITE,"This car is now for sale !");

    SaveTool();

    Delete3DTextLabel(TextUpCar[vehicleid]);

    format(TextCar,sizeof(TextCar),"This car is for sale, price: %d",VehicleSystem[GetCreatorID(vehicleid)][preis]);

    TextUpCar[vehicleid] = Create3DTextLabel(TextCar, 0xFFFFFFAA ,0,0,0,20.0,0);

    Attach3DTextLabelToVehicle(TextUpCar[vehicleid],vehicleid,0.0,0.0,0.0);

    PlayerInfo[playerid][pAcceptSellCar] = 0;

    new personalcar = (dini_Int(PFile(playerid),"CarID"));

    format(string, sizeof(string), "Personal Vehicle Bot: %s a vandut un Vehicul Personal cu ID-ul %d", sendername, personalcar);

    ABroadCast(COLOR_YELLOW,string,1);

    }

    return 1;[/pawn]

  5. Salut am un server gf si am o problema cand un jucator isi cumpara casa il spawneaza la civili sau  daca e in factiune la factiune.. Cum pot sa ii spawneze in casele lor. comanda spawnchange nu exista :)

  6. Salut tuturor as dori sa ma ajutati si pe mn cu o problema  nu stiu cum pot pune avioane la vanzare.. va rog frumos sa imi explicati si mie multumesc :kiss:  PS(sunt la inceput) (!)

  7. Vreau si eu sa stiu cum adaug un sistem war in gm ca nu prea stiu.. va rog sa imi raspundeti nu doar sa va uitati.. multumesc!! 

    //---------------------------------------startwar-------------------------------

    if(strcmp(cmd, "/startwar", true) == 0)

    {

    if(IsPlayerConnected(playerid))

      {

        if(PlayerInfo[playerid][pLeader] == 14 || PlayerInfo[playerid][pLeader] == 15)

      {

          acceptwar = 1;

    new x_nr[256];

    x_nr = strtok(cmdtext, idx);

    if(!strlen(x_nr))

    {

    SendClientMessage(playerid, COLOR_WHITE, "{00A1FF}USAGE{FFFFFF}: /startwar list , /startwar [locul]");

    return 1;

      }

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

      {

    SendClientMessage(playerid, COLOR_YELLOW, "_________Places_List_________");

    SendClientMessage(playerid, COLOR_GRAD1, "1:GS:LS 2: Plaja LS ( TURN )  3: PORT LS ( Trucker )");

    return 1;

      }

      else if(strcmp(x_nr,"1",true) == 0)

            {

          SendClientMessageToAll(COLOR_GREEN, "{00FA9A}[WAR]: {EE2C2C}Grove{D3D3D3}-{97FFFF}-{D3D3D3}-{CD3278}LCN{00FA9A} sunt provocati la war !");

    SendClientMessageToAll(COLOR_GREEN, "{00FA9A}[WAR]: Zona: {FFFFFF}GS:LS");

    GangZoneFlashForAll(warloc1,COLOR_THEMAFIA);

    warzone=1;

    acceptwar = 1;

    WarRefuseTime = SetTimer("WarRefuse", 300000, 0);

    return 1;

    }

        else if(strcmp(x_nr,"2",true) == 0)

          {

          SendClientMessageToAll(COLOR_GREEN, "{00FA9A}[WAR]: {EE2C2C}Grove{D3D3D3}-{97FFFF}-{D3D3D3}-{CD3278}LCN {00FA9A} sunt provocati la war !");

    SendClientMessageToAll(COLOR_GREEN, "{00FA9A}[WAR]: Zona: {FFFFFF}Plaja Los Santos ( TURN )");

    GangZoneFlashForAll(warloc2,COLOR_THEMAFIA);

    warzone=2;

    acceptwar = 1;

    WarRefuseTime = SetTimer("WarRefuse", 300000, 0);

    return 1;

    }

    else if(strcmp(x_nr,"3",true) == 0)

        {

          SendClientMessageToAll(COLOR_GREEN, "{00FA9A}[WAR]: {EE2C2C}Grove{D3D3D3}-{97FFFF}-{D3D3D3}-{CD3278}LCN {00FA9A} sunt provocati la war !");

              SendClientMessageToAll(COLOR_GREEN, "{00FA9A}[WAR]: Zona: {FFFFFF}Port Los Santos ( Trucker )");

    GangZoneFlashForAll(warloc3,COLOR_THEMAFIA);

    warzone=3;

    acceptwar = 1;

    WarRefuseTime = SetTimer("WarRefuse", 300000, 0);

    return 1;

    }

    }

    else if(PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pLeader] == 13)

    {

        new x_nr[256];

    x_nr = strtok(cmdtext, idx);

    if(!strlen(x_nr))

    {

    SendClientMessage(playerid, COLOR_WHITE, "{00A1FF}USAGE{FFFFFF}: /startwar list , /startwar [locul]");

    return 1;

    }

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

      {

    SendClientMessage(playerid, COLOR_YELLOW, "_________Places_List_________");

    SendClientMessage(playerid, COLOR_GRAD1, "1:GS:LS 2: Plaja LS ( TURN )  3: PORT LS ( Trucker )");

      return 1;

        }

          else if(strcmp(x_nr,"1",true) == 0)

            {

          SendClientMessageToAll(COLOR_GREEN, "{00FA9A}[WAR]: {8B5A2B}Ballas{DBDB70}{D3D3D3}-{66CD00}VLA {00FA9A} sunt provocati la WAR!");

    SendClientMessageToAll(COLOR_GREEN, "{00FA9A}[WAR]: Zona: {FFFFFF}GS:LS");

    GangZoneFlashForAll(warloc1,COLOR_THEMAFIA);

    warzone=1;

    acceptwar = 2;

    WarRefuseTime = SetTimer("WarRefuse", 300000, 0);

    return 1;

    }

        else if(strcmp(x_nr,"2",true) == 0)

          {

          SendClientMessageToAll(COLOR_GREEN, "{00FA9A}[WAR]: {8B5A2B}Ballas{DBDB70}-{D3D3D3}-{66CD00}VLA {00FA9A} sunt provocati la WAR!");

    SendClientMessageToAll(COLOR_GREEN, "{00FA9A}[WAR]: Zona: {FFFFFF}Plaja Los Santos ( TURN )");

    GangZoneFlashForAll(warloc2,COLOR_THEMAFIA);

    warzone=2;

    acceptwar = 2;

    WarRefuseTime = SetTimer("WarRefuse", 300000, 0);

    return 1;

    }

    else if(strcmp(x_nr,"3",true) == 0)

        {

          SendClientMessageToAll(COLOR_GREEN, "{00FA9A}[WAR]: {8B5A2B}Ballas{DBDB70}-{D3D3D3}-{66CD00}VLA{00FA9A} sunt provocati la WAR!");

    SendClientMessageToAll(COLOR_GREEN, "{00FA9A}[WAR]: Zona: {FFFFFF}PORT Los Santos ( Trucker )");

    GangZoneFlashForAll(warloc3,COLOR_THEMAFIA);

    acceptwar = 2;

    warzone=3;

    WarRefuseTime = SetTimer("WarRefuse", 300000, 0);

    return 1;

    }

    }

    else

    {

      SendClientMessage(playerid, COLOR_GRAD2, "You are not a gang / mafia leader!");

      return 1;

          }

    }

    return 1;

    }

    if(strcmp(cmd, "/acceptwar", true) == 0)

        {

            if(IsPlayerConnected(playerid))

            {

                if(acceptwar == 1)

                {

                  if(PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pLeader] == 13)

                    {

                        acceptwar = 0;

    SendClientMessageToAll(COLOR_BLUE,"{00FA9A}|________WAR Started________|");

    SendClientMessageToAll(COLOR_BLUE,"{EE2C2C}GROVE{D3D3D3}-{97FFFF}-{D3D3D3}-{CD3278}LCN{00FA9A}au acceptat WARUL!");

    if(warzone == 1)

    {

    SendClientMessageToAll(COLOR_BLUE,"{00FA9A}Va rugam , evitati zona GS:LS!");

    GangZoneFlashForAll(warloc1,COLOR_THEMAFIA);

    }

    else if(warzone == 2)

    {

    SendClientMessageToAll(COLOR_BLUE,"{00FA9A}Va rugam , evitati zona Plaja Los Santos (TURN) ! ");

    GangZoneFlashForAll(warloc2,COLOR_THEMAFIA);

    }

    else

    {

    SendClientMessageToAll(COLOR_BLUE,"{00FA9A}Va rugam , evitati zona Port Los Santos ( Trucker )");

    GangZoneFlashForAll(warloc3,COLOR_THEMAFIA);

    }

    SendClientMessageToAll(COLOR_BLUE,"{00FA9A}|_____WAR Started_____|");

    SetTimer("WarOver", 500000, 0);

    TimeLeft = 500;

    wartimer2 = SetTimer("WarTime", 1000, 1);

    for(new i;i < MAX_TEAMS;i++)

    {

    Killing = 0;

    Deads = 0;

    }

    IsWar = true;

    KillTimer(WarRefuseTime);

                }

    else

                    {

                        SendClientMessage(playerid, COLOR_GREY,"    Alianta adversa trebuie sa accepte !");

                    }

    }

    else if(acceptwar == 2)

    {

                    if(PlayerInfo[playerid][pLeader] == 14 || PlayerInfo[playerid][pLeader] == 15)

                    {

                        acceptwar = 0;

                        SendClientMessageToAll(COLOR_BLUE,"{00FA9A}|________WAR Started________|");

                        SendClientMessageToAll(COLOR_BLUE,"{8B5A2B}Ballas{DBDB70}-{D3D3D3}-{66CD00}VLA {00FA9A}au acceptat WARUL!");

                        if(warzone == 1)

    {

    SendClientMessageToAll(COLOR_BLUE,"{00FA9A}Va rugam , evitati zona GS:LS!");

    GangZoneFlashForAll(warloc1,COLOR_THEMAFIA);

    }

    else if(warzone == 2)

    {

    SendClientMessageToAll(COLOR_BLUE,"{00FA9A}Va rugam , evitati zona Plaja Los Santos ( TURN )");

    GangZoneFlashForAll(warloc2,COLOR_THEMAFIA);

    }

    else

    {

    SendClientMessageToAll(COLOR_BLUE,"{00FA9A}Va rugam , evitati zona Port Los Santos ( Trucker )");

    GangZoneFlashForAll(warloc3,COLOR_THEMAFIA);

    }

                        SendClientMessageToAll(COLOR_BLUE,"{00FA9A}|________WAR Started________|");

    SetTimer("WarOver", 500000, 0);

    TimeLeft = 500;

    wartimer2 = SetTimer("WarTime", 1000, 1);

                        for(new i;i < MAX_TEAMS;i++)

                        {

                            Killing = 0;

    Deads = 0;

                        }

                        IsWar = true;

    KillTimer(WarRefuseTime);

                    }

    else

                    {

                        SendClientMessage(playerid, COLOR_GREY,"    Alianta adversa trebuie sa accepte !)");

                    }

    }

                else

                {

                    SendClientMessage(playerid, COLOR_GREY, "  there wasn't any war proposed");

                }

            }

            return 1;

        }

    if(strcmp(cmd, "/refusewar", true) == 0)

        {

            if(IsPlayerConnected(playerid))

            {

                if(acceptwar == 1)

                {

                    if(PlayerInfo[playerid][pLeader] == 14 || PlayerInfo[playerid][pLeader] == 15)

                    {

                        acceptwar = 0;

                        SendClientMessageToAll(COLOR_BLUE,"{00FA9A}|________WAR Refuse________|");

                        SendClientMessageToAll(COLOR_BLUE,"{EE2C2C}GROVE{D3D3D3}-{97FFFF}-{D3D3D3}-{CD3278}LCN{00FA9A}au refuzat WARUL!");

    IsWar = false;

    GangZoneStopFlashForAll(warloc1);

    GangZoneStopFlashForAll(warloc2);

    GangZoneStopFlashForAll(warloc3);

    warzone = 0;

    KillTimer(WarRefuseTime);

                    }

    else

                    {

                        SendClientMessage(playerid, COLOR_GREY,"    Alianta adversa trebuie sa refuze !");

                    }

    }

    else if(acceptwar == 2)

    {

                    if(PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pLeader] == 13)

                    {

                        acceptwar = 0;

                        SendClientMessageToAll(COLOR_BLUE,"{00FA9A}|________WAR Refuse________|");

                        SendClientMessageToAll(COLOR_BLUE,"{8B5A2B}GROVE{DBDB70}-{D3D3D3}-{66CD00}LCN {00FA9A}au refuzat WARUL!");

    IsWar = false;

    GangZoneStopFlashForAll(warloc1);

    GangZoneStopFlashForAll(warloc2);

    GangZoneStopFlashForAll(warloc3);

    warzone = 0;

    KillTimer(WarRefuseTime);

                    }

                    else

                    {

                        SendClientMessage(playerid, COLOR_GREY,"    Alianta adversa trebuie sa refuze !");

                    }

                }

                else

                {

                    SendClientMessage(playerid, COLOR_GREY, "  there wasn't any war proposed");

                }

            }

            return 1;

        }

    if(strcmp(cmd, "/warover", true) == 0)

        {

            if(IsPlayerConnected(playerid))

            {

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

                {

                    WarOver();

    }

                else

    {

    SendClientMessage(playerid, COLOR_GRAD1, "Nu esti autorizat sa folosesti aceasta comanda!");

    }

            }

            return 1;

        }

    if(strcmp(cmd, "/timeleft", true) == 0)

    {

    if(IsPlayerConnected(playerid))

    {

    if(IsWar == true)

    {

    new time = TimeLeft/60+1;

    new str[128];

    format(str, 128,"{00FA9A}[WAR] {FFFFFF}Time Left %d minutes (%d secundes)",time, TimeLeft);

    SendClientMessage(playerid, COLOR_WHITE, str);

    }

    else

    {

    SendClientMessage(playerid, COLOR_WHITE, "Nu este War in acest moment");

    }

    }

    return 1;

  8. Salut tuturor as dori si eu un sistem de war pt sv meu nu conteaza cat de complex sa fie.. sa pot sa dau war vreau  :smiley:  si app as dori si un tutorial in care sa ma ajutati sa il bag in gamemod  :smiley:  Va multumesc!!!! sau macar un fs de war pt factiuni daca exista asa cva

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