#1

I am getting lots of errors

pawn Код:
#include <a_samp>

#define DIALOG_NAME 1
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_RED 0xAA3333AA
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_PINK 0xFF66FFAA
#define COLOR_BLUE 0x0000BBAA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_DARKRED 0x660000AA
#define COLOR_ORANGE 0xFF9900AA
#define COLOR_BRIGHTRED 0xFF0000AA
#define COLOR_INDIGO 0x4B00B0AA
#define COLOR_VIOLET 0x9955DEEE
#define COLOR_LIGHTRED 0xFF99AADD
#define COLOR_SEAGREEN 0x00EEADDF
#define COLOR_GRAYWHITE 0xEEEEFFC4
#define COLOR_LIGHTNEUTRALBLUE 0xabcdef66
#define COLOR_GREENISHGOLD 0xCCFFDD56
#define COLOR_LIGHTBLUEGREEN 0x0FFDD349
#define COLOR_NEUTRALBLUE 0xABCDEF01
#define COLOR_LIGHTCYAN 0xAAFFCC33
#define COLOR_LEMON 0xDDDD2357
#define COLOR_MEDIUMBLUE 0x63AFF00A
#define COLOR_NEUTRAL 0xABCDEF97
#define COLOR_BLACK 0x00000000
#define COLOR_NEUTRALGREEN 0x81CFAB00
#define COLOR_DARKGREEN 0x12900BBF
#define COLOR_LIGHTGREEN 0x24FF0AB9
#define COLOR_DARKBLUE 0x300FFAAB
#define COLOR_BLUEGREEN 0x46BBAA00
#define COLOR_PINK 0xFF66FFAA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_DARKRED 0x660000AA
#define COLOR_ORANGE 0xFF9900AA
#define COLOR_PURPLE 0x800080AA
#define COLOR_GRAD1 0xB4B5B7FF
#define COLOR_GRAD2 0xBFC0C2FF
#define COLOR_RED1 0xFF0000AA
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_RED 0xAA3333AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_BROWN 0x993300AA
#define COLOR_CYAN 0x99FFFFAA
#define COLOR_TAN 0xFFFFCCAA
#define COLOR_PINK 0xFF66FFAA
#define COLOR_KHAKI 0x999900AA
#define COLOR_LIME 0x99FF00AA
#define COLOR_SYSTEM 0xEFEFF7AA
#define COLOR_GRAD2 0xBFC0C2FF
#define COLOR_GRAD4 0xD8D8D8FF
#define COLOR_GRAD6 0xF0F0F0FF
#define COLOR_GRAD2 0xBFC0C2FF
#define COLOR_GRAD3 0xCBCCCEFF
#define COLOR_GRAD5 0xE3E3E3FF
#define COLOR_GRAD1 0xB4B5B7FF


new Text:textdraw;
new Text:textdraw1;
new Text:Black;

// Teams - Ballas - Grove - Aztecas - //
new gTeam[MAX_PLAYERS];
#define TEAM_BALLAS 0
#define B_SKIN 102
#define B_WEAPON 24
#define B_WEAPON2 31
#define B_WEAPON3 29
#define B_COLOR 0xAA3333AA

#define TEAM_GROVE 1
#define G_SKIN 105
#define G_WEAPON 24
#define G_WEAPON2 31
#define G_WEAPON3 29
#define G_COLOR 0x33AA33AA

#define TEAM_AZTECAS 2
#define A_SKIN 115
#define A_WEAPON 24
#define A_WEAPON2 31
#define A_WEAPON3 29
#define A_COLOR 0x300FFAAB

new count = 0;
new count1 = 0;
#define MAX_TEAM_MEMBERS 10

//Mission Textdraw
new Text:Mission;

//Objectives Textdraw
new Text:ArmyO;
new Text:TerriostO;

//Timer
new Timer;
new Timer2;
new Timer3;
new Timer4;

new Team1Count;
new Team2Count;

main()
{
    print("+----------------------------------+\n");
    print("+           Gang Wars!             +\n");
    print("+----------------------------------+\n");
}

public OnGameModeInit()
{
    Timer4 = SetTimer("Next",270000,false);

    AddStaticVehicle(467,2482.4065,-1655.0054,13.0566,88.3722,86,86); // Oceanic (Grove)
    AddStaticVehicle(567,2508.3542,-1666.5747,13.2666,10.8028,86,86); // Savanna (Grove)
    AddStaticVehicle(536,2490.4897,-1682.8024,13.0739,269.2473,86,86); // Blade (Grove)
    AddStaticVehicle(560,2473.3931,-1704.8989,13.2309,358.9504,86,86); // Sultan (Grove)
    AddStaticVehicle(522,2504.0635,-1680.7866,12.9562,129.6161,86,86); // NRG (Grove)
    AddStaticVehicle(487,2529.9153,-1677.4232,20.0584,90.1973,86,86); // Maverick (Grove)

    AddStaticVehicle(467,2186.0596,-1672.9365,14.0392,347.6639,58,58); // Oceanic (Ballas)
    AddStaticVehicle(567,2188.1912,-1663.3453,14.6180,347.4898,58,58); // Savanna (Ballas)
    AddStaticVehicle(536,2194.8850,-1669.8597,14.2627,347.8792,58,58); // Blade (Ballas)
    AddStaticVehicle(560,2197.1851,-1659.1492,14.7497,346.9435,58,58); // Sultan (Ballas)
    AddStaticVehicle(522,2187.6973,-1648.3765,15.0478,298.5362,58,58); // NRG (Ballas)
    AddStaticVehicle(487,2165.7427,-1664.8199,22.2012,313.3387,58,58); // Maverick (Ballas)


    CreateObject(14553,-349.00000000,1597.90002441,900.79998779,0.00000000,0.00000000,0.00000000); //object(androm_des_obj) (2)
    CreateObject(14548,-348.89999390,1599.19995117,900.70001221,0.00000000,0.00000000,0.00000000); //object(cargo_test) (2)

/*
Objects converted: 5
Vehicles converted: 4
Vehicle models found: 4
----------------------
In the time this conversion took to finish the US national debt has risen by about $10,701.39!
*/


    CreateObject(1222,-292.46466064,2612.84619141,85.13320923,0.00000000,0.00000000,0.00000000); //object(cj_drum) (1)
    CreateObject(1222,-229.16072083,2660.40429688,62.18418121,0.00000000,0.00000000,0.00000000); //object(cj_drum) (2)
    CreateObject(1222,-229.18096924,2660.40258789,63.32153320,0.00000000,0.00000000,0.00000000); //object(cj_drum) (3)
    CreateObject(1222,-229.08303833,2660.41113281,64.45437622,0.00000000,0.00000000,0.00000000); //object(cj_drum) (4)
    CreateObject(1222,-228.96743774,2660.42138672,65.58313751,0.00000000,0.00000000,0.00000000); //object(cj_drum) (5)
    CreateObject(1222,-228.99963379,2660.72387695,64.22539520,0.00000000,0.00000000,0.00000000); //object(cj_drum) (6)
    CreateObject(1222,-228.82444763,2661.31591797,64.14508057,0.00000000,0.00000000,0.00000000); //object(cj_drum) (7)
    CreateObject(1222,-228.81120300,2661.69189453,64.37915039,0.00000000,0.00000000,0.00000000); //object(cj_drum) (8)
    CreateObject(1222,-229.18624878,2662.69531250,62.18426514,0.00000000,0.00000000,0.00000000); //object(cj_drum) (9)
    CreateObject(1222,-229.20069885,2662.70092773,63.32261658,0.00000000,0.00000000,0.00000000); //object(cj_drum) (10)
    CreateObject(1222,-229.18339539,2662.69433594,64.46228790,0.00000000,0.00000000,0.00000000); //object(cj_drum) (11)
    CreateObject(1222,-229.02891541,2662.63427734,65.56943512,0.00000000,0.00000000,0.00000000); //object(cj_drum) (12)
    CreateObject(1222,-229.00500488,2662.42968750,64.23728180,0.00000000,0.00000000,0.00000000); //object(cj_drum) (13)
    CreateObject(1222,-229.43627930,2663.96484375,62.18505859,0.00000000,0.00000000,0.00000000); //object(cj_drum) (14)
    CreateObject(1222,-229.41244507,2664.17187500,63.27313995,0.00000000,0.00000000,0.00000000); //object(cj_drum) (15)
    CreateObject(1222,-229.32659912,2664.48706055,64.25167084,0.00000000,0.00000000,0.00000000); //object(cj_drum) (16)
    CreateObject(1222,-229.31262207,2664.71850586,65.32346344,0.00000000,0.00000000,0.00000000); //object(cj_drum) (17)
    CreateObject(1222,-229.29003906,2664.87963867,64.79201508,0.00000000,0.00000000,0.00000000); //object(cj_drum) (18)
    CreateObject(1222,-229.06555176,2665.40405273,64.18511963,0.00000000,0.00000000,0.00000000); //object(cj_drum) (19)
    CreateObject(1222,-316.92617798,2667.20263672,64.03229523,0.00000000,0.00000000,0.00000000); //object(cj_drum) (20)
    CreateObject(1222,-228.95925903,2665.69873047,63.18354034,0.00000000,0.00000000,0.00000000); //object(cj_drum) (21)
    CreateObject(1222,-228.86830139,2666.19116211,63.20519638,0.00000000,0.00000000,0.00000000); //object(cj_drum) (22)
    CreateObject(1222,-228.79296875,2666.52368164,64.15899658,0.00000000,0.00000000,0.00000000); //object(cj_drum) (23)
    CreateObject(1222,-228.84080505,2666.86547852,65.08730316,0.00000000,0.00000000,0.00000000); //object(cj_drum) (24)
    CreateObject(1222,-228.74501038,2667.10205078,65.39649200,0.00000000,0.00000000,0.00000000); //object(cj_drum) (25)
    CreateObject(1222,-229.28814697,2667.68920898,64.18409729,0.00000000,0.00000000,0.00000000); //object(cj_drum) (26)
    CreateObject(1222,-229.49514771,2667.97753906,62.93506622,0.00000000,0.00000000,0.00000000); //object(cj_drum) (27)
    CreateObject(1222,-229.23292542,2668.16015625,62.18441010,0.00000000,0.00000000,0.00000000); //object(cj_drum) (28)

    UsePlayerPedAnims();
    DisableInteriorEnterExits();
    SetGameModeText("|Gang Wars|");
    AddPlayerClass(102, 0.0, 0.0, 0, 0, 0, 0, 0, 0, 0, 0);// - Ballas - //
    AddPlayerClass(105, 0.0, 0.0, 0, 0, 0, 0, 0, 0, 0, 0);// - Grove - //
    AddPlayerClass(115, 0.0, 0.0, 0, 0, 0, 0, 0, 0, 0, 0);// - Aztecas - //

    UsePlayerPedAnims();


    Timer2 = SetTimer("NoExplode",300000,false);

    CreateObject(10828,-2459.21948242,1509.98645020,12.80105972,0.00000000,0.00000000,264.00000000); //object(drydock1_sfse) (1)
    CreateObject(10828,-2462.85302734,1474.91772461,12.69999313,0.00000000,0.00000000,264.00000000); //object(drydock1_sfse) (2)
    CreateObject(10828,-2466.55004883,1440.64086914,12.52502060,0.00000000,0.00000000,263.99597168); //object(drydock1_sfse) (3)
    CreateObject(10828,-2469.15698242,1416.96289062,12.88667011,0.00000000,0.00000000,263.99597168); //object(drydock1_sfse) (4)
    CreateObject(10828,-2502.15307617,1512.82995605,11.25000000,0.00000000,0.00000000,263.99597168); //object(drydock1_sfse) (5)
    CreateObject(10828,-2505.79907227,1478.23242188,11.00000000,0.00000000,0.00000000,263.99597168); //object(drydock1_sfse) (6)
    CreateObject(10828,-2509.46020508,1443.17895508,11.00000000,0.00000000,0.00000000,263.99597168); //object(drydock1_sfse) (7)
    CreateObject(10828,-2512.53784180,1417.40686035,11.07130623,0.00000000,0.00000000,259.99597168); //object(drydock1_sfse) (8)
    CreateObject(10828,-2300.75756836,1527.40588379,11.72590256,0.00000000,0.00000000,263.99597168); //object(drydock1_sfse) (9)
    CreateObject(10828,-2304.78051758,1492.13867188,11.50000000,0.00000000,0.00000000,263.99597168); //object(drydock1_sfse) (10)
    CreateObject(10828,-2308.45581055,1457.14038086,11.45000458,0.00000000,0.00000000,263.99597168); //object(drydock1_sfse) (11)
    CreateObject(10828,-2312.10815430,1422.79211426,11.50000000,0.00000000,0.00000000,263.99597168); //object(drydock1_sfse) (12)
    CreateObject(10828,-2315.70092773,1388.90039062,11.62683868,0.00000000,0.00000000,263.99597168); //object(drydock1_sfse) (13)
    CreateObject(10828,-2327.67041016,1357.70275879,11.06532097,0.00000000,2.00000000,234.74591064); //object(drydock1_sfse) (14)
    CreateObject(10828,-2522.86621094,1555.19763184,11.95000458,0.00000000,0.00000000,183.99597168); //object(drydock1_sfse) (15)
    CreateObject(10828,-2556.84228516,1552.67797852,12.25000000,0.00000000,0.00000000,183.99353027); //object(drydock1_sfse) (16)
    CreateObject(10828,-2591.47534180,1550.84448242,12.38559532,0.00000000,0.00000000,183.99353027); //object(drydock1_sfse) (17)
    CreateObject(10828,-2625.85083008,1548.29833984,12.00000000,0.00000000,0.00000000,183.99353027); //object(drydock1_sfse) (18)
    CreateObject(10828,-2657.41821289,1546.00109863,12.25000000,0.00000000,0.00000000,183.99353027); //object(drydock1_sfse) (19)
    CreateObject(10828,-2336.28540039,1546.44482422,24.62937927,0.00000000,0.00000000,93.99353027); //object(drydock1_sfse) (20)
    CreateObject(10828,-2355.04492188,1562.37365723,25.37937927,0.00000000,0.00000000,355.99353027); //object(drydock1_sfse) (21)
    CreateObject(10828,-2441.28344727,1558.68896484,20.92606926,0.00000000,0.00000000,355.98999023); //object(drydock1_sfse) (22)
    CreateObject(10828,-2510.50415039,1556.36828613,24.60282135,0.00000000,0.00000000,5.98999023); //object(drydock1_sfse)


    return 1;
}

public OnGameModeExit()
{
    TextDrawDestroy(Mission);
    TextDrawDestroy(ArmyO);
    TextDrawDestroy(TerriostO);
    return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid,-227.15220642,2662.48730469,62.26383972);
    SetPlayerCameraPos(playerid, -216.19187927,2663.92211914,62.25078964);
    SetPlayerCameraLookAt(playerid, -227.15220642,2662.48730469,62.26383972);
    if(classid == 0)
    {
       GameTextForPlayer(playerid,"~r~Ballas",1000,5);
       gTeam[playerid] = TEAM_BALLAS;
    }
    else if(classid == 1)
    {
       GameTextForPlayer(playerid,"~g~Grove",1000,5);
       gTeam[playerid] = TEAM_GROVE;
       }
       else if(classid == 2)
       {
       GameTextForPlayer(playerid,"~b~Aztecas",1000,5);
       gTeam[playerid] = TEAM_AZTECAS;
       return 1;
}
public OnPlayerDisconnect(playerid, reason);
{
    TextDrawHideForPlayer(playerid, Mission);
    return 1;
}
public OnPlayerSpawn(playerid);
{
    if(gTeam[playerid] == TEAM_GROVE)
    {
        // - Angles and Posistions - //
        SetPlayerPos(playerid,2471.39990234,-1705.00000000,13.19999981);
        SetPlayerFacingAngle(playerid,351.5399);
       
        // - Timers - //
        SetTimer("HideTDarmy",5000,false);
       
        // - Weapons - //
        GivePlayerWeapon(playerid,G_WEAPON3, 1500);
        GivePlayerWeapon(playerid,G_WEAPON2, 1500);
        GivePlayerWeapon(playerid,G_WEAPON, 1500);
       
        // - Skins - //
        SetPlayerSkin(playerid,G_SKIN);
       
        // - Nametag and Blip Color - //
        SetPlayerColor(playerid,G_COLOR);
       
        // - Other stuff - //
        SetPlayerTeam(playerid,1);
        SetPlayerInterior(playerid, 0);
        SetPlayerTime(playerid,0,0);
        SetPlayerCheckpoint(playerid, 2529.39990234,-1666.90002441,14.80000019, 6.0);
        Team2Count = Team2Count + 1;
        ShowPlayerMarkers(0);
    }
    }
    else if(gTeam[playerid] == TEAM_BALLAS);
    {
        SetPlayerPos(playerid,2172.4897,-1671.3495,15.0859,299.4541);
        SetPlayerFacingAngle(playerid,351.5399);
        SetTimer("HideTDterriost",5000,false);
       
        SetPlayerColor(playerid,B_COLOR);
        GivePlayerWeapon(playerid,B_WEAPON,1500);
        GivePlayerWeapon(playerid,B_WEAPON2,1500);
        GivePlayerWeapon(playerid,B_WEAPON3,1500);
        GivePlayerWeapon(playerid,34,1500);
        SetPlayerSkin(playerid,B_SKIN);
        SetPlayerTime(playerid,12,0);
        SetPlayerInterior(playerid, 0);
        ShowPlayerMarkers(0);
        SetPlayerCheckpoint(playerid, 2529.39990234,-1666.90002441,14.80000019, 6.0);
        Team1Count = Team1Count + 1;
        new zskin = random(3);
        switch(zskin) {
        case 0:SetPlayerSkin(playerid,102);
        case 1:SetPlayerSkin(playerid,103);
        case 2:SetPlayerSkin(playerid,104);
    }
    }
    return 1;
}
forward HideTDterriost(playerid);
public HideTDterriost(playerid)
{
    TextDrawHideForPlayer(playerid,TerriostO);
}
forward HideTDarmy(playerid);
public HideTDarmy(playerid)
{
    TextDrawHideForPlayer(playerid,ArmyO);
}
public OnPlayerDeath(playerid, killerid, reason)
{
    SendDeathMessage(killerid,playerid,reason);
    SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
    GivePlayerMoney(killerid, 1000);
    return 1;
}



forward NoExplode(playerid);
public NoExplode(playerid)
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(gTeam[i] == TEAM_ARMY)
    {
                    GameTextForPlayer(i, "~g~ Mission Completed", 6000, 4);
                    GivePlayerMoney(i, 3000);
                    SetPlayerScore(i,GetPlayerScore(i)+3);
                    PlayerPlaySound(i, 1185, 0.0, 0.0, 0.0);


    }
    else if(gTeam[i] == TEAM_TERRIOST)
    {
                    GameTextForPlayer(i, "~r~ Mission Failed", 6000, 4);
                    PlayerPlaySound(i, 1185, 0.0, 0.0, 0.0);
    }
    }
    }
    SetTimer("Finsh",6000,false);
    return 1;
}


forward Explode(playerid);
public Explode(playerid)
{

    SetTimer("explosion",2000,false);

    CreateExplosion(-332.89999390,1595.40002441,75.69999695, 11, 40.0);
    CreateExplosion(-332.89999390,1595.40002441,75.69999695, 11, 50.0);
    CreateExplosion(-332.89999390,1595.40002441,75.69999695, 11, 70.0);
    CreateExplosion(-332.89999390,1595.40002441,75.69999695, 11, 70.0);
    RemoveBuildingForPlayer(playerid, 9686, -2681.4922, 1595.0078, 109.4375, 0.25);
    RemoveBuildingForPlayer(playerid, 9687, -2681.4922, 1684.4609, 120.4531, 0.25);
    RemoveBuildingForPlayer(playerid, 9688, -2681.5000, 1764.8438, 113.1172, 0.25);
    RemoveBuildingForPlayer(playerid, 9689, -2681.4922, 1684.4609, 120.4531, 0.25);
    RemoveBuildingForPlayer(playerid, 9690, -2681.4922, 1595.0078, 109.4375, 0.25);
    RemoveBuildingForPlayer(playerid, 9691, -2681.4922, 1847.9375, 120.0859, 0.25);
    RemoveBuildingForPlayer(playerid, 9693, -2681.4922, 1847.9375, 120.0859, 0.25);
    RemoveBuildingForPlayer(playerid, 9838, -2681.4922, 1595.0078, 109.4375, 0.25);
    RemoveBuildingForPlayer(playerid, 1290, -2681.5859, 1609.8828, 70.0938, 0.25);
    RemoveBuildingForPlayer(playerid, 1290, -2681.5859, 1860.7500, 72.1719, 0.25);
    RemoveBuildingForPlayer(playerid, 1290, -2681.5859, 1798.0313, 73.3281, 0.25);
    RemoveBuildingForPlayer(playerid, 1290, -2681.5859, 1923.4688, 69.8828, 0.25);
    RemoveBuildingForPlayer(playerid, 1290, -2681.5859, 1735.3125, 73.3438, 0.25);
    RemoveBuildingForPlayer(playerid, 1290, -2681.5859, 1672.6016, 72.3047, 0.25);
    CreateObject(9689, -2654.35, 1847.18, 83.00,   -18.00, 15.00, 209.00);
    CreateObject(9689, -2663.89, 1695.90, 45.30,   -40.00, 15.00, 360.00);
    CreateObject(9690, -2615.34, 1592.64, 158.21,   11.00, -11.00, 148.29);
    CreateObject(9690, -2780.21, 1610.01, 116.91,   -25.00, -40.00, 9.27);
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(gTeam[i] == TEAM_TERRIOST)
    {
                    GameTextForPlayer(i, "~g~ Mission Completed", 6000, 4);
                    GivePlayerMoney(i, 3000);
                    SetPlayerScore(i,GetPlayerScore(i)+3);
                    PlayerPlaySound(i, 1185, 0.0, 0.0, 0.0);
                    SetTimer("explosion",2000,false);
                    SetTimer("Finsh",5000,false);
    }
    else if(gTeam[i] == TEAM_ARMY)
    {
                    GameTextForPlayer(i, "~r~ Mission Failed", 6000, 4);

                    SetTimer("explosion",2000,false);
                    PlayerPlaySound(i, 1185, 0.0, 0.0, 0.0);
                    SetTimer("Finsh",5000,false);

    }
    }
    }
    return 1;
}

forward broke(playerid);
public broke(playerid)
{
    TextDrawHideForPlayer(playerid, Black);
    SetTimer("Finsh",6000,false);
    return 1;
}
forward Finsh(playerid);
public Finsh(playerid)
{
    PlayerPlaySound(playerid, 1130, 0.0, 0.0, 10.0);
    GameTextForPlayer(playerid,"~b~PLEASE WAIT CHANGING ~w~MISSION",6000,0);
    SendRconCommand("changemode heavycompetition");
    return 1;
}

forward explosion(playerid);
public explosion(playerid)
{
    CreateExplosion(-332.89999390,1595.40002441,75.69999695, 11, 70.0);
    CreateExplosion(-332.89999390,1595.40002441,75.69999695, 11, 70.0);
    CreateExplosion(-332.89999390,1595.40002441,75.69999695, 11, 70.0);
                CreateExplosion(-332.89999390,1595.40002441,75.69999695, 11, 70.0);
                    CreateExplosion(-332.89999390,1595.40002441,75.69999695, 11, 70.0);
                        CreateExplosion(-332.89999390,1595.40002441,75.69999695, 11, 70.0);
                            CreateExplosion(-332.89999390,1595.40002441,75.69999695, 11, 70.0);
                                CreateExplosion(-332.89999390,1595.40002441,75.69999695, 11, 70.0);
                                    CreateExplosion(-332.89999390,1595.40002441,75.69999695, 11, 70.0);


    return 1;
}
forward Exploded(playerid);
public Exploded(playerid)
{

Timer8 = SetTimer("Explode",7000,false);
SendClientMessageToAll(COLOR_GREEN, "The bom has been armed, everything is going to explode in 30 seconds!!");
SendClientMessageToAll(COLOR_YELLOW, "The next mission will be Heavy Competition!");
KillTimer(Timer2);
    return 1;
}

forward Next(playerid);
public Next(playerid)
{
    SendClientMessageToAll(COLOR_YELLOW, "The next mission will be Heavy Competition!");
    return 1;
}


public OnPlayerEnterCheckpoint(playerid)
{
    if(IsPlayerInAnyVehicle(playerid))
    {
    SendClientMessage(playerid,0xFF0000AA,"You can't plant if you are in a vehicle");
    }
    if(gTeam[playerid] == TEAM_ARMY)
    {
        GameTextForPlayer(playerid,"~w~Defend this place from the ~r~Ballas",5000,4);
    }
    else if(gTeam[playerid] == TEAM_TERRIOST && !IsPlayerInAnyVehicle(playerid))
    {
    for(new i, m = GetMaxPlayers(); i < m; i++)
    {
        if (IsPlayerConnected(i))
        {
        Timer = SetTimer("Exploded",15000,false);
        new name[MAX_PLAYER_NAME], string[44];
        GetPlayerName(playerid, name, sizeof(name));
        format(string, sizeof(string), "~r~%s ~w~is planting the bomb",name);
        textdraw = TextDrawCreate(445.0, 125.0, string);
        TextDrawUseBox(textdraw , 1);
        TextDrawFont(textdraw , 1);
        TextDrawLetterSize(textdraw ,0.3,1);
        TextDrawHideForPlayer(i, textdraw1);
        CountDown(playerid, 600);
        TextDrawShowForPlayer(i, textdraw);
        TextDrawColor(textdraw ,0x000000FF);
        TextDrawTextSize(textdraw , 200.0, 200.0);
        TextDrawLetterSize(textdraw, 0.34, 1.10);
        SetTimer("enter",5000,false);
    }
    }
    }
    return 1;
}

public OnPlayerLeaveCheckpoint(playerid)
{

    if(gTeam[playerid] == TEAM_TERRIOST && !IsPlayerInAnyVehicle(playerid))
    {
        for(new i, m = GetMaxPlayers(); i < m; i++)
    {
        if (IsPlayerConnected(i))
        {
        SetTimer("stopplant",3000,false);
        new name[MAX_PLAYER_NAME], string[44];
        GetPlayerName(playerid, name, sizeof(name));
        format(string, sizeof(string), "~r~%s ~w~stopped planting the bomb",name);
        textdraw1 = TextDrawCreate(445.0, 125.0, string);
        TextDrawUseBox(textdraw1 , 1);
        TextDrawFont(textdraw1 , 1);
        CountDown(playerid, 600);
        TextDrawLetterSize(textdraw1 ,0.3,1);
        TextDrawHideForPlayer(i, textdraw);
        TextDrawShowForPlayer(i, textdraw1);
        TextDrawColor(textdraw1 ,0x000000FF);
        TextDrawTextSize(textdraw1 , 200.0, 200.0);
        TextDrawLetterSize(textdraw1, 0.34, 1.10);
        SetTimer("leave",5000,false);
        KillTimer(Timer);
    }
    }
    }
    return 1;
}
forward enter(playerid);
public enter(playerid)
{
TextDrawDestroy(textdraw);
return 1;
}

forward leave(playerid);
public leave(playerid)
{
TextDrawDestroy(textdraw1);
return 1;
}

public OnPlayerRequestSpawn(playerid)
{
    new team1count, team2count;
    for(new i, m = GetMaxPlayers(); i < m; i++)
    {
        if (IsPlayerConnected(i))
        {
            if (gTeam[i] == TEAM_ARMY) team1count++;
            else if (gTeam[i] == TEAM_TERRIOST) team2count++;
        }
    }
    if (gTeam[playerid] == TEAM_ARMY)
    {
        if (team1count > (team2count+1)){
        SendClientMessage(playerid, COLOR_RED, "This team is full, please choose the other one.");
            return 0;
        }

    }
    else if (gTeam[playerid] == TEAM_TERRIOST)
    {
        if ((team1count+1) < team2count){
        SendClientMessage(playerid, COLOR_RED, "This team is full, please choose the other one.");
            return 0;
        }
    }
    return 1;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if (ispassenger) return 1;
  for(new i; i < GetMaxPlayers(); i++)
  {
    if(IsPlayerConnected(i))
    {
      if(IsPlayerInVehicle(i,vehicleid) && GetPlayerState(i) == PLAYER_STATE_DRIVER && GetPlayerTeam(i) == GetPlayerTeam(playerid))
      {
                new Float:x, Float:y, Float:z;
                GetPlayerPos(playerid,x,y,z);
                SetPlayerPos(playerid,x,y,z+5);
                SendClientMessage(playerid, COLOR_YELLOW, "No teamjacking!");
      }
    }
  }
  return 1;
}

stock CountDown(playerid, time)
{
    CountDownTime[playerid] = time;
    CTimer[playerid] = SetTimerEx("CountDownTimer", 600000, false, "i", playerid);
    return 0;
}

forward CountDownTimer(playerid);
public CountDownTimer(playerid)
{
    if(CountDownTime[playerid] > 1)
    {
        new timer[28];
        format(timer, sizeof(timer), "%i Seconds", CountDownTime[playerid]);
        GameTextForPlayer(playerid, timer, 1000, 0);
        CountDownTime[playerid] -= 1;
        return 1;
    }
    else
    {
        KillTimer(CTimer[playerid]);
    }
    return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/shop", true))
    {
        ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Buy a Weapon!", " MP5 ($1500)\n TEC-9 ($1500)\n UZI ($1500)\n Desert Eagle ($2500)", "Select", "Cancel");
        return 1;
    }
    }
    public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(response){
    switch(dialogid)
    {
      case 1:
      {
         switch(listitem)
         {
            case 0: //MP5
            {
                  if(GetPlayerMoney(playerid) < 1500) return SendClientMessage(playerid,0xFF0000FF,"You cannot afford this!");
                  GivePlayerWeapon(playerid,WEAPON_MP5,1500);
                  GivePlayerMoney(playerid,-1500);

            }
            case 1:
            {
                  if(GetPlayerMoney(playerid) < 1500) return SendClientMessage(playerid,0xFF0000FF,"You cannot afford this!");
                  GivePlayerWeapon(playerid,WEAPON_TEC9,1500);
                  GivePlayerMoney(playerid,-1500);
            }
            case 2:
            {
                  if(GetPlayerMoney(playerid) < 1500) return SendClientMessage(playerid,0xFF0000FF,"You cannot afford this!");
                  GivePlayerWeapon(playerid,WEAPON_UZI,1500);
                  GivePlayerMoney(playerid,-1500);
            }
            case 3:
            {
                  if(GetPlayerMoney(playerid) < 2500) return SendClientMessage(playerid,0xFF0000FF,"You cannot afford this!");
                  GivePlayerWeapon(playerid,WEAPON_DEAGLE,1500);
                  GivePlayerMoney(playerid,-2500);
            }
         }
      }
    }
}

else {
     SendClientMessage(playerid, COLOR_RED, "You have cancelled");
}
}
I am fixing an old script up and have these errors, Help?

C:\Users\Me\Desktop\GTA SA-MP Server\gamemodes\NewGangWars.pwn(244) : warning 217: loose indentation

C:\Users\Me\Desktop\GTA SA-MP Server\gamemodes\NewGangWars.pwn(244) : error 029: invalid expression, assumed zero

C:\Users\Me\Desktop\GTA SA-MP Server\gamemodes\NewGangWars.pwn(244) : error 004: function "OnPlayerDisconnect" is not implemented

C:\Users\Me\Desktop\GTA SA-MP Server\gamemodes\NewGangWars.pwn(249) : warning 225: unreachable code

C:\Users\Me\Desktop\GTA SA-MP Server\gamemodes\NewGangWars.pwn(249) : error 029: invalid expression, assumed zero

C:\Users\Me\Desktop\GTA SA-MP Server\gamemodes\NewGangWars.pwn(249) : error 004: function "OnPlayerSpawn" is not implemented

C:\Users\Me\Desktop\GTA SA-MP Server\gamemodes\NewGangWars.pwn(280) : warning 217: loose indentation

C:\Users\Me\Desktop\GTA SA-MP Server\gamemodes\NewGangWars.pwn(280) : error 029: invalid expression, assumed zero

C:\Users\Me\Desktop\GTA SA-MP Server\gamemodes\NewGangWars.pwn(280) : warning 215: expression has no effect

C:\Users\Me\Desktop\GTA SA-MP Server\gamemodes\NewGangWars.pwn(280) : error 001: expected token: ";", but found "if"

C:\Users\Me\Desktop\GTA SA-MP Server\gamemodes\NewGangWars.pwn(280) : error 036: empty statement

C:\Users\Me\Desktop\GTA SA-MP Server\gamemodes\NewGangWars.pwn(280) : fatal error 107: too many error messages on one line

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


8 Errors.
Reply
#2

please show error lines!
Reply
#3

It says it on the errors after "NewGangWars.pwn(number)"
Reply
#4

Your brackets are pretty much fucked up, learn to indent and then fix them.
Reply
#5

Its not my brackets though haha, I am fixing someones really old Script
Reply
#6

And I know the "warning 207" thats not what I care about.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)