Many Error
#1

Can someone help me?
Thanks
Код:
: warning 204: symbol is assigned a value that is never used: "string22"
 warning 204: symbol is assigned a value that is never used: "name"
pawn Код:
TazerAcceso[playerid] = 0;

    ShiftInfo[playerid] = (ShiftInfo[playerid] == false) ? (true) : (true);
    ShiftTimer[playerid] = SetTimerEx("ShiftFunction", 200, true, "e", playerid);

    TextDrawShowForPlayer(playerid, Text:textcl5);
    gPlayerUsingLoopingAnim[playerid] = 0;
    gPlayerAnimLibsPreloaded[playerid] = 0;

    new name[MAX_PLAYER_NAME];
    new string22[100+MAX_PLAYER_NAME];

    new plname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, plname, sizeof(plname));

    if(Security != 0)
    {
        SendClientMessage(playerid, COLOR_YELLOW, "Host has broken one of the Agreement rules, action has been taken.");
        Kick(playerid);
        return 1;
    }
__________________________________________________ ___________________________________
Код:
: warning 204: symbol is assigned a value that is never used: "string"
pawn Код:
if(MedicBill[playerid] == 1 && PlayerInfo[playerid][pJailed] == 0 && PlayerPaintballing[playerid] == 0)
        {
            if(FirstSpawn[playerid] != 1)
            {
                new string[256];
                new cut = deathcost; //PlayerInfo[playerid][pLevel]*deathcost;
                SafeGivePlayerMoney(playerid, -cut);
                NeedMedicTime[playerid] = 0;
                PlayerInfo[playerid][pDeaths] += 1;
                SetPlayerHealth(playerid, 25.0);
                SetPlayerInterior(playerid, 0);
                PlayerInfo[playerid][pInt] = 0;
                rand = random(sizeof(gMedicSpawns));
                SetPlayerPos(playerid, gMedicSpawns[rand][0], gMedicSpawns[rand][1], gMedicSpawns[rand][2]); // Warp the player
                /*GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~w~ Vo Bolnica ste pocekajte ...", 3000, 3);
                JustDied[playerid] = 1;
                MedicTime[playerid] = 1;
                ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
                if(PlayerInfo[playerid][pDonateRank] > 0)
                {
                    NeedMedicTime[playerid] = 15;
                }
                else
                {
                    NeedMedicTime[playerid] = 15;
                }*/

                PlayerPlaySound(playerid, 1062, 0.0, 0.0, 0.0);
                return 1;
            }
        }
__________________________________________________ ______________________________________
Код:
219: local variable "exp" shadows a variable at a preceding level
pawn Код:
new exp = PlayerInfo[targetid][pExp];
__________________________________________________ _____________________________________
Код:
204: symbol is assigned a value that is never used: "DonatorPoeni"
pawn Код:
new DonatorPoeni = PlayerInfo[targetid][pDonatorPoeni];
__________________________________________________ _____________________________________
Код:
217: loose indentation
pawn Код:
//---------------------------Boks Arena---------------------------------------------
CreateObject(3819,1248.4000200,-960.9000200,50.7000000,0.0000000,0.0000000,0.0000000); //object(bleacher_sfsx)(1)
CreateObject(3819,1240.8000500,-954.5999800,50.7000000,0.0000000,0.0000000,90.0000000); //object(bleacher_sfsx)(2)
CreateObject(3819,1241.5999800,-967.7999900,50.7000000,0.0000000,0.0000000,270.0000000); //object(bleacher_sfsx)(3)
CreateObject(14782,1225.0999800,-960.7000100,50.7000000,0.0000000,0.0000000,90.0000000); //object(int3int_boxing30)(1)
CreateObject(14781,1240.8000500,-961.5999800,50.8000000,0.0000000,0.0000000,358.0000000); //object(in_bxing05)(1)
CreateObject(8673,1241.1999500,-952.2000100,51.3000000,0.0000000,0.0000000,0.0000000); //object(csrsfence03_lvs)(1)
CreateObject(8673,1235.0999800,-952.2000100,51.2000000,0.0000000,0.0000000,0.0000000); //object(csrsfence03_lvs)(2)
CreateObject(8673,1235.0000000,-970.5999800,51.1000000,0.0000000,0.0000000,0.0000000); //object(csrsfence03_lvs)(3)
CreateObject(8673,1241.1999500,-970.5999800,51.2000000,0.0000000,0.0000000,0.0000000); //object(csrsfence03_lvs)(4)
CreateObject(1413,1251.1999500,-954.9000200,51.0000000,0.0000000,0.0000000,90.0000000); //object(dyn_mesh_3)(1)
CreateObject(1413,1251.1999500,-960.2000100,51.0000000,0.0000000,0.0000000,90.0000000); //object(dyn_mesh_3)(2)
CreateObject(1413,1251.1999500,-965.5000000,51.0000000,0.0000000,0.0000000,90.0000000); //object(dyn_mesh_3)(3)
CreateObject(1413,1251.1999500,-967.9000200,51.0000000,0.0000000,0.0000000,90.0000000); //object(dyn_mesh_3)(4)
CreateObject(8673,1224.6778600,-962.2000100,51.2000000,0.0000000,0.0000000,90.0000000); //object(csrsfence03_lvs)(6)
CreateObject(1508,1219.5999800,-975.2999900,44.1000000,0.0000000,0.0000000,270.0000000); //object(dyn_garage_door)(1)
CreateObject(1508,1224.8000500,-967.2000100,51.3000000,0.0000000,0.0000000,0.0000000); //object(dyn_garage_door)(2)
CreateObject(1775,1229.4000200,-952.9000200,50.8000000,0.0000000,0.0000000,0.0000000); //object(cj_sprunk1)(1)
CreateObject(1776,1231.3000500,-952.7999900,50.8000000,0.0000000,0.0000000,0.0000000); //object(cj_candyvendor)(1)
CreateObject(2837,1245.4000200,-957.5000000,49.7000000,0.0000000,0.0000000,0.0000000); //object(gb_takeaway02)(1)
CreateObject(2839,1239.9000200,-966.9000200,50.5000000,0.0000000,0.0000000,0.0000000); //object(gb_takeaway04)(1)
CreateObject(910,1227.5000000,-971.4000200,43.7000000,0.0000000,0.0000000,0.0000000); //object(bust_cabinet_4)(1)
CreateObject(1223,1226.0999800,-953.0999800,49.7000000,0.0000000,0.0000000,330.0000000); //object(lampost_coast)(1)
CreateObject(1223,1236.8000500,-968.5000000,49.7000000,0.0000000,0.0000000,39.9960000); //object(lampost_coast)(2)
CreateObject(1223,1248.5000000,-968.2000100,49.7000000,0.0000000,0.0000000,121.9960000); //object(lampost_coast)(3)
CreateObject(1223,1247.4000200,-955.2000100,49.7000000,0.0000000,0.0000000,221.9920000); //object(lampost_coast)(4)

/*
Objects converted: 25
Vehicles converted: 0
Vehicle models found: 0
----------------------
__________________________________________________ __________________________

Код:
217: loose indentation
pawn Код:
//-----------------------------------------------------------------------------------------
    donatordizalo = CreateObject(5302, 1747.7084960938, -1358.923828125, 14.750907897949, 0, 90, 90);
    lcnsklad1 = CreateObject(980,1812.90002441,-2072.00000000,13.30000019,0.00000000,0.00000000,90.00000000); //object(airportgate) (1)
    lcnsklad2 = CreateObject(972,1789.59997559,-2030.00000000,11.50000000,0.00000000,0.00000000,179.99993896); //object(tunnelentrance) (1)
    hitmankapija = CreateObject(971,952.73, -1273.92, 17.67,0.00, 0.00, 88.47);
    ballas =    CreateObject(3037,2432.6999500,-1397.5000000,29.6000000,0.0000000,0.0000000,90.0000000); //object(warehouse_door2b) (1)
    gsfsklad = CreateObject(972,2455.8999023,-1772.0999756,10.3000002,0.0000000,0.0000000,306.0000000); //object(tunnelentrance) (2)
__________________________________________________ ____________________________________

Код:
202: number of arguments does not match definition 
202: number of arguments does not match definition
202: number of arguments does not match definition
202: number of arguments does not match definition
202: number of arguments does not match definition
202: number of arguments does not match definition
202: number of arguments does not match definition
202: number of arguments does not match definition
pawn Код:
//ICA CAR--------------------------------------------------------------------------------------------------
    ICACar[0] = AddStaticVehicle(429,972.7000122,-1265.0999756,16.0000000,180.0000000,0,0,0); //Banshee
    ICACar[1] = AddStaticVehicle(445,979.5000000,-1275.6999512,15.1000004,90.0000000,0,0,0); //Admiral
    ICACar[2] = AddStaticVehicle(482,997.5000000,-1265.9000244,15.3000002,180.0000000,0,0,0); //Burrito
    ICACar[3] = AddStaticVehicle(522,991.5999756,-1266.5000000,14.6999998,180.0000000,0,0,0); //NRG-500
    ICACar[4] = AddStaticVehicle(522,994.2999878,-1266.5000000,14.6999998,180.0000000,0,0,0); //NRG-500
    ICACar[5] = AddStaticVehicle(560,979.2999878,-1265.1999512,15.8000002,180.0000000,0,0,0); //Sultan

//NOVINARI CAR--------------------------------------------------------------------------------------------------------
    SANCar[0] = AddStaticVehicle(582,782.3993,-1345.0905,13.5927,91.1693,2,0); // cnn kombi 1
    SANCar[1] = AddStaticVehicle(582,782.6248,-1350.5460,13.5961,89.3857,2,0); // cnn kombi 2
    SANCar[2] = AddStaticVehicle(582,782.6300,-1356.2513,13.5948,89.8259,2,0); // cnn kombi 3
    SANCar[3] = AddStaticVehicle(582,782.6609,-1362.1071,13.5947,90.0771,2,0); // cnn kombi 4
    SANCar[4] = AddStaticVehicle(582,782.6590,-1367.7968,13.5929,88.5794,2,0); // cnn kombi 5
    SANCar[5] = AddStaticVehicle(488,743.20001221,-1369.50000000,26.00000000,90.00000000,2,1,0); //News Chopper
__________________________________________________ ____________________________________

Код:
217: loose indentation
pawn Код:
if(listitem == 1) // LSPD Weapons
            {
                ShowPlayerDialog(playerid, DUTYMENU2, DIALOG_STYLE_LIST, "LSPD Weapons","Mase\nKnite Stick\nDeagle\nSpas12\nMP5\nM4\nAK-47\nGranade\nSmoke Bomb\nC4", "Take", "Cancel");
            }
        }
    }
    if(dialogid == DUTYMENUFBI)
    {
        if(response)
        {
            if(listitem == 0) // LSPD Duty
            {
                SetPlayerSkin(playerid, 152);
            }
            if(listitem == 1) // LSPD Weapons
            {
                SetPlayerSkin(playerid, 173);
            }
            if(listitem == 2) // LSPD Weapons
            {
                SetPlayerSkin(playerid, 59);
            }
        }
    }
__________________________________________________ _________________________________

Код:
217: loose indentation
pawn Код:
if(dialogid == 888)
        {
                if(response)
                {
                    if(listitem == 0)
                    {
                        if(PlayerInfo[playerid][pDonatorPoeni] >= 100)
                        {
                        GivePlayerMoney(playerid, 2000000);
                        PlayerInfo[playerid][pDonatorPoeni] -= 100;
                        OnPropUpdate();
                        SendClientMessage(playerid, SVETLOPLAVA, "Dobivte 2.000.000$  !");
                        }
                        else SendClientMessage(playerid, 0xFFFFFFAA, "Nemate Dovolno Donator Poeni !");
                        return 0;
                    }
__________________________________________________ ________________________________
Код:
217: loose indentation
pawn Код:
if(dialogid == 2012) //
        {
      if(response)
                 {
      for(new i=0; i<MAX_PLAYERS; i++)
     {
       if(IsPlayerConnected(i))
      {
           PlayAudioStreamForPlayer(i, inputtext);
           Muzika[playerid] = 1;
           /*GetPlayerName(playerid, sendername, sizeof(sendername));
            format(string, sizeof(string), "%s pusti muzika", sendername);
                        SendClientMessageToAll(COLOR_LIGHTRED, string);*/

         }
      }
    }
    else
__________________________________________________ ____________________________________

Код:
217: loose indentation
217: loose indentation
pawn Код:
if(dialogid == 137) {
            if(!response)
        {
           Kick(playerid);
           return 1;
        }
    new pass = strval(inputtext);
    new playerPass = 112233;
    if (pass == playerPass)
    {
        SendClientMessage(playerid,COLOR_WHITE,"{37F906}INFO:{FFFFFF}Uspesno se logiravte na Admin Panelot.");
        return 1;
    }
Код:
217: loose indentation
__________________________________________________ _____________________
Код:
217: loose indentation
217: loose indentation
pawn Код:
if(dialogid == 138) {
            if(!response)
        {
           Kick(playerid);
           return 1;
        }
    new pass = strval(inputtext);
    new playerPass = 123321;
    if (pass == playerPass)
    {
        SendClientMessage(playerid,COLOR_WHITE,"{37F906}INFO:{FFFFFF}Uspesno se logiravte na GameMaster Panelot.");
        return 1;
__________________________________________________ ________________________________

Код:
215: expression has no effect
215: expression has no effect
-- 28606) : warning 215: expression has no effect
pawn Код:
SetPlayerPos(playerid, 1346.0989,-1741.9377,13.3828);
                    }
                    SendClientMessage(playerid, WHITE, "{37F906}INFO:{FFFFFF}Teleportiran ste kaj 24/7 narodna."); 1346.0989,-1741.9377,13.3828
                    SetPlayerInterior(playerid,0);
                }
                else if(listitem == 12) // orge
                {
                    ShowPlayerDialog(playerid, 215, DIALOG_STYLE_LIST, "Organizacii","PD\nMVR\nMD\nYakuza\nLCN\nHitman\nKanal-7\nLSG\nGSF\nVlada\nBallas\nMRD\nARM", "Port", "Iskluci");
                }
                else if(listitem == 13) // plaza
                {
__________________________________________________ __________________________________

Код:
warning 217: loose indentation
pawn Код:
if(listitem == 1)
                {
                    format(string, sizeof(string), "Cestitame %s,kupivte Noz!", sendername);
                    GameTextForPlayer(playerid,string, 4000, 3);
                    GivePlayerWeapon(playerid,4,1);
                    GivePlayerMoney(playerid,-10);
                    BizzInfo[1][bTill] += 5;
                    ExtortionBiz(1, 5);
                    BizzInfo[1][bProducts]--;
                    OnPropUpdate();
                }
__________________________________________________ _____________________________________

Код:
warning 204: symbol is assigned a value that is never used: "Carray"
warning 204: symbol is assigned a value that is never used: "Carray"
pawn Код:
new Carray[] = {1,0,6,2,79,149,151,3,34};
            return ShowPlayerDialog(playerid,1116,DIALOG_STYLE_LIST,"Odberi Boja:","Bela\nCrna\nPortokalova\nSvetlo Plava\nTemno Plava\nLiljakova\nCrvena\nTemno Crvena\nKafeava","Stavi","Iskluci");
        }

        if(dialogid == 1116 && response)
        {
            new Carray[] = {1,0,6,2,79,149,151,3,34};
            return CarmodDialog(playerid);
        }
__________________________________________________ ___________________________________
Код:
warning 219: local variable "lights" shadows a variable at a preceding level
 warning 219: local variable "doors" shadows a variable at a preceding level
pawn Код:
//--------------------------<[ OnPlayerCommandText ]>------------------------------
public OnPlayerCommandText(playerid, cmdtext[])
{
    dcmd(specplayer, 10, cmdtext);
    dcmd(specoff, 7, cmdtext);
    dcmd(xgoto, 5, cmdtext);
    dcmd(warn,4,cmdtext);
    new engine, lights, alarm, doors, bonnet, boot, objective;
    new string[256];
    new playermoney;
    new sendername[MAX_PLAYER_NAME];
    new giveplayer[MAX_PLAYER_NAME];
    new playername[MAX_PLAYER_NAME];
    new cmd[256];
    new tmp[256];
    new giveplayerid, moneys, idx;
    new idcar = GetPlayerVehicleID(playerid);
    new pveh = GetVehicleModel(GetPlayerVehicleID(playerid));
    new broj = PlayerInfo[playerid][pPnumber];
    cmd = strtok(cmdtext, idx);
__________________________________________________ ____________________________________
Код:
: warning 217: loose indentation
: warning 217: loose indentation
: warning 217: loose indentation
: warning 215: expression has no effect
: warning 217: loose identation
pawn Код:
if(strcmp("/hakiraj", cmdtext, true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
           if(PlayerInfo[playerid][pRank] < 5)
           {
                SendClientMessage(playerid, COLOR_WHITE, "Ne ste 5rank!!!");
                return 1;
           }
           if(PlayerToPoint(4.0, playerid, 1446.4717,-1010.3167,14.2254))
           {
                SetTimerEx("RandomPljacka", 500, false, "d",playerid);
                return 1;
        }
        return 1;
    }
    }
    if(strcmp("/hackbankomat", cmdtext, true) == 0)
           {
                      if(IsPlayerConnected(playerid))
                      {
                                if(BankRobbedRecently4 == 1)
                                {
                                    SendClientMessage(playerid, WHITE, ""COL_RED"GRESKA:{FFFFFF}Vekje imate hakirano bankomat ili bankomatot e hakiran.");
                                    return 1;
                                }
                                 if(PlayerInfo[playerid][pRank] < 5)
                         {
                              SendClientMessage(playerid, WHITE, ""COL_RED"GRESKA:{FFFFFF}Ne ste 5 rank.");
                              return 1;
                         }
                                if(PlayerToPoint(1.5, playerid, 1497.3469,-1749.0995,15.4453) || PlayerToPoint(1.5, playerid, 1211.5828,-915.7076,43.0200) || PlayerToPoint(1.5, playerid, 1430.2308,-1023.0338,23.8281) || PlayerToPoint(1.5, playerid, 1186.8688,-1371.7002,13.5630) || PlayerToPoint(1.5, playerid, 2104.6667,-1809.0786,13.5547) || PlayerToPoint(1.5, playerid, 2054.9087,-1898.5846,13.5538))
                {
                                PlayerInfo[playerid][pRobTime] = 900;
                                BankRobbedRecently4 = 1;
                                GetPlayerName(playerid, sendername, sizeof(sendername));
                                format(string, sizeof(string), "VIDEO NADZOR: %s e sniman kako pljacka eden od bankomatite vo Los Santos!!!.", sendername);
                                SendTeamMessage(1, COLOR_ORANGE, string);
                                SendTeamMessage(2, COLOR_ORANGE, string);
                                SendTeamMessage(3, COLOR_ORANGE, string);
                                TogglePlayerControllable(playerid, 0);
                                WantedPoints[playerid]+10;
                                TogglePlayerControllable(playerid, 0);
                                PlayerFreezed[playerid] = 1;
                                SetTimerEx("UnSetBankRob", 15000, false, "i", playerid);
                                SetTimerEx("RobDone3", 15000, false, "i", playerid);
                                SendClientMessage(playerid, WHITE, "{37F906}INFO:{FFFFFF}Mora da pocekate 30 sekundi.");
                        }
                        else
                        {
                            SendClientMessage(playerid, COLOR_WHITE, "{FF4040}GRESKA:{FFFFFF}Ne ste pred Bankomat.");
                    return 1;
                        }
                }
                return 1;
        }
__________________________________________________ ___________________________________
Код:
: warning 217: loose indentation
: warning 217: loose indentation
: warning 217: loose indentation
: warning 217: loose indentation
: warning 217: loose indentation
pawn Код:
if(strcmp("/hacknarodna", cmdtext, true) == 0)
        {
          if(IsPlayerConnected(playerid))
          {
                if(BankRobbedRecently2 == 1)
                {
                     SendClientMessage(playerid, WHITE, ""COL_RED"GRESKA:{FFFFFF}Narodnata Banka e ograbena, pocekajte do sledniot PayDay da go hakirate.");
                     return 1;
                }
                if(PlayerInfo[playerid][pRank] < 5)
                {
                     SendClientMessage(playerid, WHITE, ""COL_RED"GRESKA:{FFFFFF}Ne ste 5 rank.");
                     return 1;
                  }
                  if(PlayerInfo[playerid][pMaskuse] == 0)
                  {
                     SendClientMessage(playerid, WHITE, ""COL_RED"GRESKA:{FFFFFF}Nemate Staveno Maska.");
                     return 1;
                 }
                 if (PlayerToPoint(2, playerid, 297.4897,186.0089,1007.1719))
                 {
                PlayerInfo[playerid][pRobTime] = 900;
                BankRobbedRecently2 = 1;
                GetPlayerName(playerid, sendername, sizeof(sendername));
                SendClientMessage(playerid,COLOR_WHITE,"||| VESTI NA DENOT |||");
                format(string, sizeof(string), "NARODNA BANK ALARM: %s go zapocna grabezot NARODNA BANK ALARM !!!.", sendername);
                SendTeamMessage(1, COLOR_YELLOW, string);
                SendTeamMessage(2, COLOR_YELLOW, string);
                SendTeamMessage(3, COLOR_YELLOW, string);
                SendTeamMessage(1, COLOR_YELLOW, string);
                SendTeamMessage(2, COLOR_YELLOW, string);
                SendTeamMessage(3, COLOR_YELLOW, string);
                SendTeamMessage(1, COLOR_YELLOW, string);
                SendTeamMessage(2, COLOR_YELLOW, string);
                SendTeamMessage(3, COLOR_YELLOW, string);
                SendTeamMessage(1, COLOR_YELLOW, string);
                SendTeamMessage(2, COLOR_YELLOW, string);
                SendTeamMessage(3, COLOR_YELLOW, string);
                TogglePlayerControllable(playerid, 0);
                PlayerFreezed[playerid] = 1;
                SetTimerEx("RobDone2", 120000, false, "i", playerid);
                SendClientMessage(playerid, WHITE, "{37F906}INFO:{FFFFFF}Mora da pocekate 2 minuti.");
            }
            else
            {
                SendClientMessage(playerid, COLOR_WHITE, "{FF0000}GRESKA:{FFFFFF}Ne ste pred Narodna Banka.");
                return 1;
            }
        }
        return 1;
    }
__________________________________________________ ____________________________________
Код:
: warning 217: loose indentation
pawn Код:
if (strcmp("/marama", cmdtext, true, 10) == 0)
    {
        if(IsAGang(playerid))
        {
            if(maramawearg[playerid] == 0)
            {
                SetPlayerAttachedObject(playerid, 3, 18912, 2, -0.08, 0.03, 0.0, 90, -180, -90); //marama
                maramawearg[playerid] = 1;
                SendClientMessage(playerid, WHITE, "{37F906}INFO:{FFFFFF}Stavivte marama na vaseto lice.");
                GetPlayerName(playerid, sendername, sizeof(sendername));
                format(string, sizeof(string), "* %s vadi marama i ja stava svoeto lice.", sendername);
                ProxDetector(15.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
            }
        }
        else
        {
            SendClientMessage(playerid, WHITE, "{FF0000}GRESKA:{FFFFFF}Ne ste clen na banda/mafija!");
        }
        return 1;
    }
    if (strcmp("/trgnimarama", cmdtext, true, 10) == 0)
    {
        if(IsAGang(playerid))
        {
            if(maramawearg[playerid] == 1)
            {
                RemovePlayerAttachedObject(playerid,3);
                maramawearg[playerid] = 0;
                SendClientMessage(playerid, WHITE, "{37F906}INFO:{FFFFFF}Ja trgnavte maramata od svoeto lice.");
                GetPlayerName(playerid, sendername, sizeof(sendername));
                format(string, sizeof(string), "* %s ja vadi maramata od svoeto lice.", sendername);
                ProxDetector(15.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
            }
        }
        return 1;
    }
__________________________________________________ _________________________________
Код:
: warning 217: loose indentation
pawn Код:
if(strcmp(cmd, "/razoruzajall", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pAdmin] >= 1338)
            {
                GetPlayerName(playerid, sendername, sizeof(sendername));
                format(string, sizeof(string), "Administrator %s gi razoruza site igraci.", sendername);
                SendClientMessageToAll(COLOR_LIGHTRED, string);
                for(new i = 0; i < MAX_PLAYERS; i ++)
                {
__________________________________________________ _____________________________________
Код:
: warning 217: loose indentation
pawn Код:
//GIVEMONEY ALL
    if(strcmp(cmd, "/levelupall", true) == 0 || strcmp(cmd, "/levelupall", true) == 0)
    {
        if (PlayerInfo[playerid][pAdmin] >= 1340)
        {
                for(new i = 0; i < MAX_PLAYERS; i++)
                        {
                                if(IsPlayerConnected(i))
                                {
                                    GetPlayerName(playerid, sendername, sizeof(sendername));
                                    new playerlevel = PlayerInfo[i][pLevel];
                                    PlayerInfo[i][pLevel] = playerlevel + 5;
                                    format(string, sizeof(string), "AdmCmd:Admin %s dade na site igraci 5+ Level", sendername);
                                    SCM(i,COLOR_LIGHTRED,string);
                                }
                        }
                return 1;
                }
__________________________________________________ _________________________________
Код:
: warning 204: symbol is assigned a value that is never used: "playerexp"
-- 33950) : warning 217: loose indentation
pawn Код:
if(strcmp(cmd, "/lovedn", true) == 0)
    {
        if (PlayerInfo[playerid][pAdmin] >= 1339)
        {
            for(new i = 0; i < MAX_PLAYERS; i++)
            {
               if(IsPlayerConnected(i))
               {
                    new playerexp = PlayerInfo[i][pExp];
                    GetPlayerName(playerid, sendername, sizeof(sendername));
                    format(string, sizeof(string), "                                                                                                       **I Love My Best Server **",sendername);
                    SCM(i,CRVENA,string);
                        }
                }
                return 1;
                }
    }
__________________________________________________ _________________________________
Код:
: warning 217: loose indentation
pawn Код:
if(strcmp(cmd, "/respectall", true) == 0)
    {
        if (PlayerInfo[playerid][pAdmin] >= 1340)
        {
            for(new i = 0; i < MAX_PLAYERS; i++)
            {
               if(IsPlayerConnected(i))
               {
                    new playerexp = PlayerInfo[i][pExp];
                    PlayerInfo[i][pExp] = playerexp + 1200;
                    GetPlayerName(playerid, sendername, sizeof(sendername));
                    format(string, sizeof(string), "AdmCmd:Admin %s dade na site igraci +1200 RESPECTS",sendername);
                    SCM(i,COLOR_LIGHTRED,string);
                        }
                }
                return 1;
                }
    }
__________________________________________________ ___________________________________
Код:
: warning 217: loose indentation
pawn Код:
if(IsPlayerConnected(playerid))
        {
            GetPlayerName(playerid, sendername, sizeof(sendername));
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_WHITE, "{FF8306}KORISTETE:{FFFFFF}/report [ID/Ime na Igracot] [pricina].");
                return 1;
            }
                giveplayerid = strval(tmp);
__________________________________________________ __________________________________
Код:
: warning 217: loose indentation
pawn Код:
GetPlayerName(playerid, sendername, sizeof(sendername));
                    format(string, 256, "%s[%i] se prijavi za event.", sendername,playerid);
                    ABroadCast(COLOR_YELLOW,string,1);
                    SendClientMessage(playerid, COLOR_WHITE, "{37F906}INFO:{FFFFFF}Se prijavivte na Event.");
                    Event[playerid] = 1;
                    SetTimer("EventReset", 60000, 0);
        }
        return 1;
    }
__________________________________________________ ___________________________________
Reply
#2

Search before posting. Most of the warnings are for your indentation and from unused variables. Learn how to indent or use a program that will do it for you and delete all unused variables.
Reply
#3

Thanks, i fix it.
Now i have this errors:

Код:
(4661) : error 017: undefined symbol "loginname"
(4661) : error 017: undefined symbol "loginname"
(4661) : error 029: invalid expression, assumed zero
(4661) : fatal error 107: too many error messages on one line
pawn Код:
//PD
    RemoveBuildingForPlayer(playerid, 647, 1546.6016, -1693.3906, 14.4375, 0.25);
    RemoveBuildingForPlayer(playerid, 620, 1547.5703, -1689.9844, 13.0469, 0.25);
    RemoveBuildingForPlayer(playerid, 647, 1546.8672, -1687.1016, 14.4375, 0.25);
    RemoveBuildingForPlayer(playerid, 646, 1545.5234, -1678.8438, 14.0000, 0.25);
    RemoveBuildingForPlayer(playerid, 646, 1553.8672, -1677.7266, 16.4375, 0.25);
    RemoveBuildingForPlayer(playerid, 646, 1553.8672, -1673.4609, 16.4375, 0.25);
    RemoveBuildingForPlayer(playerid, 646, 1545.5625, -1672.2188, 14.0000, 0.25);
    RemoveBuildingForPlayer(playerid, 647, 1546.6016, -1664.6250, 14.4375, 0.25);
    RemoveBuildingForPlayer(playerid, 647, 1546.8672, -1658.3438, 14.4375, 0.25);
    RemoveBuildingForPlayer(playerid, 620, 1547.5703, -1661.0313, 13.0469, 0.25);
    RemoveBuildingForPlayer(playerid, 647, 1541.4766, -1648.4531, 14.4375, 0.25);
    GetPlayerName(playerid,loginname,sizeof(loginname));
    PlayAudioStreamForPlayer(playerid, "https://dl.dropboxusercontent.com/s/z834k2bgngbcmm6/kbgdHubwVdkG.128.mp3");
Reply
#4

pawn Код:
new loginname[MAX_PLAYER_NAME];
GetPlayerName(playerid,loginname,sizeof(loginname));
Reply
#5

Thanks!!!
Now it's OK!
One more questions..
I want to add a music while the player is connecting

pawn Код:
PlayAudioStreamForPlayer(playerid, "https://dl.dropboxusercontent.com/s/z834k2bgngbcmm6/kbgdHubwVdkG.128.mp3");
but when he's connects the music don't stop...
How do I stop it?
Reply
#6

To where you want to stop the music:
pawn Код:
StopAudioStreamForPlayer(playerid);
Reply
#7

Thanks, but when I connected the music did not stop
Reply
#8

pawn Код:
PlayAudioStreamForPlayer(playerid, "https://dl.dropboxusercontent.com/s/z834k2bgngbcmm6/kbgdHubwVdkG.128.mp3");
SetTimerEx("StopAudio", 10 * 1000, false, "i", playerid);
pawn Код:
forward StopAudio(playerid);
public StopAudio(playerid)
{
    StopAudioStreamForPlayer(playerid);
}
It will stop the music after 10 seconds a player has connected. Change 10 to the seconds you want.
Reply
#9

Thanks!!!! It's Ok now!
Thanks again!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)