Problem making this a Filterscript
#1

I'm working on a new filterscript, and I'm having problems making it. Here's my current one.

pawn Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include <a_samp>
#include <zcmd>

#define COLOR_GREEN 0x36D40BFF
#define COLOR_RED 0xF20A25FF

enum _pos_data
{
    Float:X
    Float:Y //Error here
    Float:Z
    Float:A
}:

new pData[_pos_data];
new bool:PartyStarted;
new bool:AtParty[MAX_PLAYERS];


public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" MiniGame FilterScript by Rangerxxll");
    print("--------------------------------------\n");
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

#else //Error here

main()
{
    print("\n----------------------------------");
    print(" Blank Gamemode by your name here");
    print("----------------------------------\n");
}

#endif //Error here

public OnGameModeInit()
{
    AddStaticVehicleEx(500,2189.72778320,-3321.40234375,190.84323120,0.00000000,-1,-1,15); //Mesa
    AddStaticVehicleEx(579,2166.54199219,-3019.12744141,190.72186279,184.00000000,-1,-1,15); //Huntley
    AddStaticVehicleEx(468,2186.10009766,-3319.60009766,190.39999390,0.00000000,-1,-1,15); //Sanchez
    AddStaticVehicleEx(468,2171.19995117,-3018.60009766,190.39999390,179.99993896,-1,-1,15); //Sanchez
    CreateObject(8172,2172.39941406,-3091.58593750,189.63885498,0.00000000,0.00000000,0.00000000); //object(vgssairportland07) (1)
    CreateObject(8172,2132.54980469,-3092.48925781,189.63885498,0.00000000,0.00000000,0.00000000); //object(vgssairportland07) (2)
    CreateObject(8172,2212.19799805,-3090.98217773,189.63885498,0.00000000,0.00000000,0.00000000); //object(vgssairportland07) (3)
    CreateObject(8172,2212.02636719,-3252.13378906,189.63885498,0.00000000,0.00000000,0.00000000); //object(vgssairportland07) (4)
    CreateObject(8172,2172.15820312,-3252.09375000,189.63885498,0.00000000,0.00000000,0.00000000); //object(vgssairportland07) (5)
    CreateObject(8172,2132.39575195,-3253.78295898,189.63885498,0.00000000,0.00000000,0.00000000); //object(vgssairportland07) (6)
    CreateObject(8172,2112.06176758,-3090.80102539,205.88885498,0.00000000,90.00000000,0.00000000); //object(vgssairportland07) (8)
    CreateObject(8172,2112.42456055,-3251.20751953,205.88885498,0.00000000,90.00000000,0.00000000); //object(vgssairportland07) (9)
    CreateObject(8172,2112.42382812,-3251.20703125,244.88885498,0.00000000,90.00000000,0.00000000); //object(vgssairportland07) (10)
    CreateObject(8172,2112.06152344,-3090.80078125,245.38885498,0.00000000,90.00000000,0.00000000); //object(vgssairportland07) (11)
    CreateObject(8172,2192.90356445,-3330.00708008,205.88885498,0.00000000,90.00000000,89.99850464); //object(vgssairportland07) (12)
    CreateObject(8172,2192.90332031,-3330.00683594,244.38885498,0.00000000,90.00000000,89.99450684); //object(vgssairportland07) (13)
    CreateObject(8172,2232.02709961,-3250.16552734,205.88885498,0.00000000,90.00000000,179.99346924); //object(vgssairportland07) (14)
    CreateObject(8172,2232.02636719,-3250.16503906,244.13885498,0.00000000,90.00000000,179.98901367); //object(vgssairportland07) (15)
    CreateObject(8172,2231.64941406,-3089.14160156,205.88885498,0.00000000,90.00000000,179.98352051); //object(vgssairportland07) (16)
    CreateObject(8172,2231.64941406,-3089.14160156,243.38885498,0.00000000,90.00000000,179.98901367); //object(vgssairportland07) (17)
    CreateObject(8172,2170.49829102,-3010.66845703,205.88885498,0.00000000,90.00000000,269.98696899); //object(vgssairportland07) (19)
    CreateObject(8172,2170.49804688,-3010.66796875,244.88885498,0.00000000,90.00000000,269.98352051); //object(vgssairportland07) (20)
    CreateObject(8172,2152.52148438,-3315.61425781,253.88885498,0.04351807,178.00000000,89.95239258); //object(vgssairportland07) (21)
    CreateObject(8172,2151.68554688,-3277.81250000,255.38885498,0.03845215,177.99499512,89.95056152); //object(vgssairportland07) (22)
    CreateObject(8172,2150.27612305,-3237.83203125,255.38885498,0.03845215,177.99499512,89.95056152); //object(vgssairportland07) (23)
    CreateObject(8172,2157.61645508,-3198.25146484,256.38885498,0.03845215,177.99499512,89.95056152); //object(vgssairportland07) (24)
    CreateObject(8172,2154.80249023,-3159.09399414,257.63885498,0.03845215,177.99499512,89.95056152); //object(vgssairportland07) (25)
    CreateObject(8172,2153.11132812,-3122.39038086,258.88885498,0.03845215,177.99499512,89.95056152); //object(vgssairportland07) (26)
    CreateObject(8172,2149.56982422,-3087.16040039,258.88885498,0.03845215,177.99499512,89.95056152); //object(vgssairportland07) (27)
    CreateObject(8172,2150.06445312,-3050.36914062,258.88885498,0.03845215,177.99499512,89.95056152); //object(vgssairportland07) (28)
    CreateObject(8172,2150.11254883,-3027.49267578,258.88885498,0.03845215,177.99499512,89.95056152); //object(vgssairportland07) (29)
    CreateObject(655,2127.89160156,-3279.87109375,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree06) (1)
    CreateObject(655,2131.89794922,-3284.02709961,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree06) (2)
    CreateObject(655,2119.61279297,-3280.61474609,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree06) (3)
    CreateObject(655,2130.60156250,-3270.29150391,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree06) (4)
    CreateObject(655,2139.35937500,-3272.11132812,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree06) (5)
    CreateObject(655,2136.24658203,-3257.41748047,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree06) (6)
    CreateObject(693,2203.40429688,-3176.25195312,195.18984985,0.00000000,0.00000000,0.00000000); //object(sm_redwood_) (1)
    CreateObject(693,2137.80126953,-3207.16064453,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_redwood_) (2)
    CreateObject(693,2119.22070312,-3221.71459961,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_redwood_) (3)
    CreateObject(693,2144.69335938,-3188.21166992,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_redwood_) (4)
    CreateObject(731,2229.57080078,-3255.52612305,189.62322998,0.00000000,0.00000000,0.00000000); //object(tree_hipoly09) (1)
    CreateObject(731,2140.20898438,-3220.52221680,189.62322998,0.00000000,0.00000000,0.00000000); //object(tree_hipoly09) (2)
    CreateObject(18259,2201.80004883,-3321.69995117,191.00000000,0.00000000,0.00000000,265.99548340); //object(logcabinn01) (1)
    CreateObject(1271,2193.89990234,-3318.00000000,191.39999390,0.00000000,0.00000000,0.00000000); //object(gunbox) (1)
    CreateObject(1271,2194.89990234,-3317.19995117,191.39999390,0.00000000,0.00000000,0.00000000); //object(gunbox) (2)
    CreateObject(1271,2195.50000000,-3318.39990234,191.39999390,0.00000000,0.00000000,0.00000000); //object(gunbox) (3)
    CreateObject(1232,2155.81201172,-3277.14721680,192.25987244,0.00000000,0.00000000,0.00000000); //object(streetlamp1) (1)
    CreateObject(1232,2156.03710938,-3258.57153320,192.25987244,0.00000000,0.00000000,0.00000000); //object(streetlamp1) (2)
    CreateObject(1232,2155.64501953,-3239.54956055,192.25987244,0.00000000,0.00000000,0.00000000); //object(streetlamp1) (3)
    CreateObject(1232,2199.69116211,-3257.48461914,192.25987244,0.00000000,0.00000000,0.00000000); //object(streetlamp1) (4)
    CreateObject(1232,2200.38647461,-3279.50000000,192.26768494,0.00000000,0.00000000,0.00000000); //object(streetlamp1) (5)
    CreateObject(1232,2200.64453125,-3238.71582031,192.25987244,0.00000000,0.00000000,0.00000000); //object(streetlamp1) (6)
    CreateObject(658,2136.14721680,-3227.89843750,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree04) (1)
    CreateObject(658,2132.04541016,-3238.78637695,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree04) (2)
    CreateObject(658,2154.72998047,-3232.89208984,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree04) (3)
    CreateObject(658,2137.29394531,-3251.23339844,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree04) (4)
    CreateObject(658,2116.69604492,-3213.15551758,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree04) (5)
    CreateObject(693,2121.45581055,-3243.99633789,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_redwood_) (5)
    CreateObject(1337,2186.61669922,-3192.73095703,243.32922363,0.00000000,0.00000000,0.00000000); //object(binnt07_la) (1)
    CreateObject(987,140.29835510,152.96981812,452.09802246,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (1)
    CreateObject(987,156.38903809,146.63502502,472.82507324,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (2)
    CreateObject(18267,2154.00000000,-3015.89990234,190.80000305,0.00000000,0.00000000,271.99951172); //object(logcabinn) (1)
    CreateObject(842,2214.72192383,-3184.25390625,189.75968933,0.00000000,0.00000000,0.00000000); //object(dead_tree_14) (1)
    CreateObject(661,2216.88232422,-3181.08789062,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree07) (1)
    CreateObject(8172,2234.29882812,-3251.66479492,189.63885498,0.00000000,0.00000000,0.00000000); //object(vgssairportland07) (4)
    CreateObject(661,2212.43872070,-3196.85229492,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree07) (2)
    CreateObject(672,2205.66113281,-3189.51904297,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree5) (1)
    CreateObject(672,2218.58325195,-3185.77929688,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree5) (2)
    CreateObject(8172,2242.28198242,-3074.23364258,205.88885498,0.00000000,90.00000000,179.98352051); //object(vgssairportland07) (16)
    CreateObject(693,2203.40429688,-3176.25195312,195.18984985,0.00000000,0.00000000,0.00000000); //object(sm_redwood_) (1)
    CreateObject(693,2210.13989258,-3217.58203125,195.18984985,0.00000000,0.00000000,0.00000000); //object(sm_redwood_) (1)
    CreateObject(693,2198.41137695,-3224.13378906,195.18984985,0.00000000,0.00000000,0.00000000); //object(sm_redwood_) (1)
    CreateObject(3475,2115.71240234,-3293.26513672,191.99940491,0.00000000,0.00000000,269.99996948); //object(vgsn_fncelec_pst) (1)
    CreateObject(3475,2121.50659180,-3293.02294922,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (2)
    CreateObject(3475,2127.50585938,-3293.00488281,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (3)
    CreateObject(3475,2133.50659180,-3293.23730469,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (4)
    CreateObject(3475,2139.25976562,-3293.33593750,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (5)
    CreateObject(3475,2150.24902344,-3293.72265625,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (6)
    CreateObject(3475,2156.24316406,-3293.93359375,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (7)
    CreateObject(3475,2162.29736328,-3294.11914062,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (8)
    CreateObject(3475,2168.31103516,-3294.44921875,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (9)
    CreateObject(3475,2179.63012695,-3292.94458008,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (10)
    CreateObject(3475,2185.67675781,-3292.98608398,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (11)
    CreateObject(3475,2191.42114258,-3293.18750000,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (12)
    CreateObject(3475,2196.81494141,-3293.26367188,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (13)
    CreateObject(3475,2202.74267578,-3293.24023438,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (14)
    CreateObject(3475,2208.66137695,-3293.30249023,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (15)
    CreateObject(3475,2214.54736328,-3293.37255859,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (16)
    CreateObject(3475,2220.39062500,-3292.89111328,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (17)
    CreateObject(655,2214.33032227,-3323.47851562,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree06) (7)
    CreateObject(655,2225.24267578,-3320.80419922,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree06) (8)
    CreateObject(655,2218.37133789,-3315.34057617,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree06) (9)
    CreateObject(655,2228.65966797,-3305.86621094,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree06) (10)
    CreateObject(660,2212.22753906,-3311.60815430,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree03) (1)
    CreateObject(660,2221.46142578,-3307.38769531,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree03) (2)
    CreateObject(660,2208.82275391,-3310.79394531,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree03) (3)
    CreateObject(670,2225.12890625,-3300.80810547,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_firtallded) (1)
    CreateObject(670,2216.42089844,-3313.33691406,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_firtallded) (2)
    CreateObject(688,2121.90625000,-3321.43481445,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_scabg) (1)
    CreateObject(688,2121.90625000,-3321.43481445,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_scabg) (2)
    CreateObject(659,2117.81323242,-3311.50512695,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree01) (1)
    CreateObject(659,2117.79296875,-3316.50488281,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree01) (2)
    CreateObject(659,2124.30957031,-3312.28027344,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree01) (3)
    CreateObject(659,2117.35546875,-3300.50292969,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree01) (4)
    CreateObject(659,2124.87207031,-3296.28222656,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree01) (5)
    CreateObject(659,2124.83593750,-3305.53222656,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree01) (6)
    CreateObject(659,2124.83593750,-3305.53222656,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree01) (7)
    CreateObject(689,2129.04833984,-3301.96801758,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (1)
    CreateObject(689,2142.01489258,-3316.05932617,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (2)
    CreateObject(689,2176.60498047,-3316.57519531,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (3)
    CreateObject(689,2202.00390625,-3257.33032227,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (4)
    CreateObject(689,2138.70458984,-3021.32934570,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (5)
    CreateObject(8172,2130.80151367,-3092.55078125,189.63885498,0.00000000,0.00000000,0.00000000); //object(vgssairportland07) (2)
    CreateObject(689,2125.21728516,-3021.80371094,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (6)
    CreateObject(689,2123.11108398,-3040.13256836,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (7)
    CreateObject(689,2135.75537109,-3038.87548828,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (8)
    CreateObject(689,2129.49121094,-3055.62890625,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (9)
    CreateObject(689,2124.64990234,-3073.00659180,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (10)
    CreateObject(689,2124.46044922,-3089.63623047,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (11)
    CreateObject(689,2122.79833984,-3103.75854492,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (12)
    CreateObject(689,2138.03344727,-3100.08325195,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (13)
    CreateObject(689,2138.03344727,-3100.08325195,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (14)
    CreateObject(689,2125.89990234,-3119.60009766,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (9)
    CreateObject(689,2140.60009766,-3123.10009766,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (9)
    CreateObject(689,2136.10009766,-3137.39990234,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (9)
    CreateObject(689,2125.39990234,-3153.30004883,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (9)
    CreateObject(689,2142.69995117,-3170.69995117,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (9)
    CreateObject(689,2128.19995117,-3193.69995117,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (9)
    CreateObject(658,2206.00000000,-3048.00000000,189.60000610,0.00000000,0.00000000,0.00000000); //object(pinetree04) (6)
    CreateObject(658,2216.89990234,-3051.19995117,189.60000610,0.00000000,0.00000000,0.00000000); //object(pinetree04) (7)
    CreateObject(658,2210.00000000,-3067.89990234,189.60000610,0.00000000,0.00000000,0.00000000); //object(pinetree04) (8)
    CreateObject(658,2204.30004883,-3058.50000000,189.60000610,0.00000000,0.00000000,0.00000000); //object(pinetree04) (9)
    CreateObject(661,2201.30004883,-3039.19995117,189.60000610,0.00000000,0.00000000,0.00000000); //object(pinetree07) (3)
    CreateObject(661,2221.69995117,-3026.50000000,189.60000610,0.00000000,0.00000000,0.00000000); //object(pinetree07) (4)
    CreateObject(661,2217.00000000,-3049.50000000,189.60000610,0.00000000,0.00000000,0.00000000); //object(pinetree07) (5)
    CreateObject(670,2220.80004883,-3059.19995117,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_firtallded) (3)
    CreateObject(670,2215.50000000,-3083.00000000,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_firtallded) (4)
    CreateObject(683,2223.00000000,-3095.19995117,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_group) (1)
    CreateObject(683,2220.30004883,-3083.89990234,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_group) (2)
    CreateObject(683,2204.80004883,-3078.39990234,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_group) (3)
    CreateObject(683,2205.50000000,-3095.50000000,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_group) (4)
    CreateObject(683,2201.50000000,-3109.39990234,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_group) (5)
    CreateObject(683,2221.89990234,-3105.89990234,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_group) (6)
    CreateObject(683,2208.10009766,-3119.50000000,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_group) (7)
    CreateObject(690,2217.30004883,-3133.19995117,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse2) (1)
    CreateObject(690,2203.89990234,-3148.50000000,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse2) (2)
    CreateObject(690,2222.10009766,-3150.00000000,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse2) (3)
    CreateObject(690,2202.69995117,-3165.39990234,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse2) (4)
    CreateObject(690,2223.30004883,-3164.80004883,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse2) (5)
    CreateObject(1295,2155.30004883,-3064.69995117,194.89999390,0.00000000,0.00000000,0.00000000); //object(doublestreetlght1) (1)
    CreateObject(1295,2155.69995117,-3077.39990234,194.89999390,0.00000000,0.00000000,0.00000000); //object(doublestreetlght1) (2)
    CreateObject(1295,2156.00000000,-3086.89990234,194.89999390,0.00000000,0.00000000,0.00000000); //object(doublestreetlght1) (3)
    CreateObject(1295,2156.39990234,-3101.39990234,194.89999390,0.00000000,0.00000000,0.00000000); //object(doublestreetlght1) (4)
    CreateObject(1295,2190.50000000,-3050.89990234,194.89999390,0.00000000,0.00000000,0.00000000); //object(doublestreetlght1) (5)
    CreateObject(1295,2191.30004883,-3065.89990234,194.89999390,0.00000000,0.00000000,0.00000000); //object(doublestreetlght1) (6)
    CreateObject(1295,2192.10009766,-3079.89990234,194.89999390,0.00000000,0.00000000,0.00000000); //object(doublestreetlght1) (7)
    CreateObject(1295,2192.09960938,-3079.89941406,194.89999390,0.00000000,0.00000000,0.00000000); //object(doublestreetlght1) (8)
    CreateObject(1295,2192.69995117,-3091.60009766,194.89999390,0.00000000,0.00000000,0.00000000); //object(doublestreetlght1) (9)
    CreateObject(1295,2193.39990234,-3104.60009766,194.89999390,0.00000000,0.00000000,0.00000000); //object(doublestreetlght1) (10)
    CreateObject(1295,2203.80004883,-3098.50000000,194.89999390,0.00000000,0.00000000,0.00000000); //object(doublestreetlght1) (11)
    CreateObject(3475,2115.30004883,-3052.39990234,192.00000000,0.00000000,0.00000000,82.00000000); //object(vgsn_fncelec_pst) (18)
    CreateObject(3475,2121.30004883,-3053.10009766,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (19)
    CreateObject(3475,2127.19995117,-3053.89990234,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (20)
    CreateObject(3475,2133.39990234,-3054.80004883,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (21)
    CreateObject(3475,2139.30004883,-3055.60009766,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (22)
    CreateObject(3475,2145.19995117,-3056.39990234,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (23)
    CreateObject(3475,2155.30004883,-3057.80004883,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (24)
    CreateObject(3475,2161.00000000,-3058.60009766,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (25)
    CreateObject(3475,2166.89990234,-3059.39990234,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (26)
    CreateObject(3475,2178.30004883,-3061.00000000,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (27)
    CreateObject(3475,2184.00000000,-3061.80004883,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (28)
    CreateObject(3475,2189.89990234,-3062.60009766,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (29)
    CreateObject(3475,2199.60009766,-3063.89990234,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (30)
    CreateObject(3475,2205.30004883,-3064.69995117,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (31)
    CreateObject(3475,2211.00000000,-3065.50000000,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (32)
    CreateObject(3475,2221.10009766,-3066.89990234,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (33)
    CreateObject(3475,2227.00000000,-3067.69995117,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (34)
    CreateObject(3475,2233.19995117,-3068.60009766,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (35)
    CreateObject(1424,2169.10009766,-3065.69995117,190.10000610,0.00000000,0.00000000,92.00000000); //object(dyn_roadbarrier_2) (1)
    CreateObject(1424,2169.10009766,-3068.50000000,190.10000610,0.00000000,0.00000000,91.99951172); //object(dyn_roadbarrier_2) (2)
    CreateObject(1424,2169.10009766,-3071.00000000,190.10000610,0.00000000,0.00000000,91.99951172); //object(dyn_roadbarrier_2) (3)
    CreateObject(1424,2176.10009766,-3065.89990234,190.10000610,0.00000000,0.00000000,91.99951172); //object(dyn_roadbarrier_2) (4)
    CreateObject(1424,2176.39990234,-3068.69995117,190.10000610,0.00000000,0.00000000,91.99951172); //object(dyn_roadbarrier_2) (5)
    CreateObject(1424,2176.19995117,-3071.39990234,190.10000610,0.00000000,0.00000000,91.99951172); //object(dyn_roadbarrier_2) (6)
    CreateObject(3014,2162.10009766,-3019.60009766,191.10000610,0.00000000,0.00000000,0.00000000); //object(cr_guncrate) (1)
    CreateObject(3014,2161.60009766,-3018.39990234,191.10000610,0.00000000,0.00000000,0.00000000); //object(cr_guncrate) (2)
    CreateObject(3014,2160.00000000,-3019.50000000,191.10000610,0.00000000,0.00000000,0.00000000); //object(cr_guncrate) (3)
    CreateObject(3014,2162.30004883,-3017.50000000,191.10000610,0.00000000,0.00000000,0.00000000); //object(cr_guncrate) (4)

   

    // Don't use these lines if it's a filterscript
    SetGameModeText("Blank Script");
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    return 1;
}

public OnGameModeExit()
{
    return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
    return 1;
}

public OnPlayerConnect(playerid)
{
    AtParty[playerid] = false;
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    return 1;
}

public OnPlayerSpawn(playerid)
{
    return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    return 1;
}

public OnVehicleSpawn(vehicleid)
{
    return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
    return 1;
}

public OnPlayerText(playerid, text[])
{
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/event", true) == 0)
    {
        if(IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_RED, "You're not authorized to use this Command");
        {
            GetPlayerPos(playerid, pData[X], pData[Y], pData[Z]); //Error here
            GetPlayerFacingAngle(playerid, pData[A]); //Error here
            SendClientMessageToAll(COLOR_GREEN, "A Event has been started. Use /join to join the event.");
            PartyStarted = true;
            return 1;
        }
    }

    if(strcmp(cmdtext, "/join", true) == 0)
    {
        if(PartyStarted == false) return SendClientMessage(playerid, COLOR_RED, "No one has started a event yet.");
        if(AtParty[playerid] == true) return SendClientMessage(playerid, COLOR_RED, "You're already in the event, type /leave to leave.");
        SetPlayerPos(playerid, 2169.0952,-3170.2466,190);
        SetPlayerFacingAngle(playerid, 344.3667);
        AtParty[playerid] = true;
        SendClientMessage(playerid, COLOR_GREEN, "Welcome to the Event, if you wish to leave use /leave.");
        return 1;
    }

    if(strcmp(cmdtext, "/leave", true) == 0)
    {
        if(AtParty[playerid] == false) return SendClientMessage(playerid, COLOR_RED, "You're not at the Event.");
        SpawnPlayer(playerid);
        AtParty[playerid] = false;
        return 1;
    }

    if(strcmp(cmdtext, "/cancel", true) == 0)
    {
        if(IsPlayerAdmin(playerid))
        {
            if(PartyStarted == false) return SendClientMessage(playerid, COLOR_RED, "There is no Event to cancel.");
            pData[X] = 0.00, pData[Y] = 0.00, pData[Z] = 0.00, pData[A] = 0.00; // Warning and Error here
            for(new i = 0; i < MAX_PLAYERS; i++)
            {
                if(AtParty[i] == true)
                {
                    AtParty[i] = false;
                    SpawnPlayer(i);
                }
            }
            PartyStarted = false;
            return 1;
        }
    }
    return 0;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
    return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
    return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
    return 1;
}

public OnPlayerLeaveCheckpoint(playerid)
{
    return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
    return 1;
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
    return 1;
}

public OnRconCommand(cmd[])
{
    return 1;
}

public OnPlayerRequestSpawn(playerid)
{
    return 1;
}

public OnObjectMoved(objectid)
{
    return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
    return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
    return 1;
}

public OnVehicleMod(playerid, vehicleid, componentid)
{
    return 1;
}

public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
    return 1;
}

public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
    return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
    return 1;
}

public OnPlayerExitedMenu(playerid)
{
    return 1;
}

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
    return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    return 1;
}

public OnRconLoginAttempt(ip[], password[], success)
{
    return 1;
}

public OnPlayerUpdate(playerid)
{
    return 1;
}

public OnPlayerStreamIn(playerid, forplayerid)
{
    return 1;
}

public OnPlayerStreamOut(playerid, forplayerid)
{
    return 1;
}

public OnVehicleStreamIn(vehicleid, forplayerid)
{
    return 1;
}

public OnVehicleStreamOut(vehicleid, forplayerid)
{
    return 1;
}


public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
    return 1;
}

COMMAND:minigame(playerid, cmdtext)
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000FF, "You're not authorized to use this Command");
    SetPlayerPos(playerid, 2169.0952,-3170.2466,190);
    return 1;
}

COMMAND:getweapons(playerid, cmdtext)
{
    if (!IsPlayerInRangeOfPoint(playerid, 7.0, 2160.5581,-3017.5974,191))
    if (!IsPlayerInRangeOfPoint(playerid, 7.0, 2196.2363,-3319.5674,192))
    {
        return SendClientMessage(playerid, 0xFF0000FF, "You're not near the weapon crates");
    }
   
    ShowPlayerDialog(playerid, 32, DIALOG_STYLE_LIST, "Pick a weapon:", "Deagle\nCombat Shotgun\nAK47\nTearGas\nChainsaw\nSniper\nMinigun\nFlamethrower", "Pick", "Close");
    return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 32)
    {
        if(!response) return 1; // if he clicked the other button, stop the code
        switch(listitem) // Switch trough all list items
        {
            case 0:
            {
                GivePlayerWeapon(playerid, 24, 100);
            }
            case 1:
            {
                GivePlayerWeapon(playerid, 27, 100);
            }
            case 2:
            {
                GivePlayerWeapon(playerid, 30, 200);
            }
            case 3:
            {
                GivePlayerWeapon(playerid, 17, 10);
            }
            case 4:
            {
                GivePlayerWeapon(playerid, 9, 1);
            }
            case 5:
            {
                GivePlayerWeapon(playerid, 34, 100);
            }
            case 6:
            {
                GivePlayerWeapon(playerid, 38, 500);
            }
            case 7:
            {
                GivePlayerWeapon(playerid, 37, 500);
            }
        }
    }
    return 1;
}
I know its a lot to look at, I'm sorry. I'm just trying to figure out how to make it into a FS

When I try and compile I get
Quote:

C:\Documents and Settings\Lucas\Desktop\Serverstuff\MyTestServerV1. 0\filterscripts\minigame.pwn(14) : error 001: expected token: "}", but found "-label-"
C:\Documents and Settings\Lucas\Desktop\Serverstuff\MyTestServerV1. 0\filterscripts\minigame.pwn(37) : error 026: no matching "#if..."
C:\Documents and Settings\Lucas\Desktop\Serverstuff\MyTestServerV1. 0\filterscripts\minigame.pwn(46) : error 026: no matching "#if..."
C:\Documents and Settings\Lucas\Desktop\Serverstuff\MyTestServerV1. 0\filterscripts\minigame.pwn(303) : error 017: undefined symbol "Y"
C:\Documents and Settings\Lucas\Desktop\Serverstuff\MyTestServerV1. 0\filterscripts\minigame.pwn(304) : error 017: undefined symbol "A"
C:\Documents and Settings\Lucas\Desktop\Serverstuff\MyTestServerV1. 0\filterscripts\minigame.pwn(335) : error 017: undefined symbol "Y"
C:\Documents and Settings\Lucas\Desktop\Serverstuff\MyTestServerV1. 0\filterscripts\minigame.pwn(335) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


6 Errors.

Reply
#2

Below create object it says "// Don't use these lines if it's a filterscript", i guess you should delete that lines.
Reply
#3

Quote:
Originally Posted by [WoF]Sonny
Посмотреть сообщение
Below create object it says "// Don't use these lines if it's a filterscript", i guess you should delete that lines.
I deleted those lines at the bottom.
pawn Код:
public OnGameModeInit()
{
    AddStaticVehicleEx(500,2189.72778320,-3321.40234375,190.84323120,0.00000000,-1,-1,15); //Mesa
    AddStaticVehicleEx(579,2166.54199219,-3019.12744141,190.72186279,184.00000000,-1,-1,15); //Huntley
    AddStaticVehicleEx(468,2186.10009766,-3319.60009766,190.39999390,0.00000000,-1,-1,15); //Sanchez
    AddStaticVehicleEx(468,2171.19995117,-3018.60009766,190.39999390,179.99993896,-1,-1,15); //Sanchez
    CreateObject(8172,2172.39941406,-3091.58593750,189.63885498,0.00000000,0.00000000,0.00000000); //object(vgssairportland07) (1)
    CreateObject(8172,2132.54980469,-3092.48925781,189.63885498,0.00000000,0.00000000,0.00000000); //object(vgssairportland07) (2)
    CreateObject(8172,2212.19799805,-3090.98217773,189.63885498,0.00000000,0.00000000,0.00000000); //object(vgssairportland07) (3)
    CreateObject(8172,2212.02636719,-3252.13378906,189.63885498,0.00000000,0.00000000,0.00000000); //object(vgssairportland07) (4)
    CreateObject(8172,2172.15820312,-3252.09375000,189.63885498,0.00000000,0.00000000,0.00000000); //object(vgssairportland07) (5)
    CreateObject(8172,2132.39575195,-3253.78295898,189.63885498,0.00000000,0.00000000,0.00000000); //object(vgssairportland07) (6)
    CreateObject(8172,2112.06176758,-3090.80102539,205.88885498,0.00000000,90.00000000,0.00000000); //object(vgssairportland07) (8)
    CreateObject(8172,2112.42456055,-3251.20751953,205.88885498,0.00000000,90.00000000,0.00000000); //object(vgssairportland07) (9)
    CreateObject(8172,2112.42382812,-3251.20703125,244.88885498,0.00000000,90.00000000,0.00000000); //object(vgssairportland07) (10)
    CreateObject(8172,2112.06152344,-3090.80078125,245.38885498,0.00000000,90.00000000,0.00000000); //object(vgssairportland07) (11)
    CreateObject(8172,2192.90356445,-3330.00708008,205.88885498,0.00000000,90.00000000,89.99850464); //object(vgssairportland07) (12)
    CreateObject(8172,2192.90332031,-3330.00683594,244.38885498,0.00000000,90.00000000,89.99450684); //object(vgssairportland07) (13)
    CreateObject(8172,2232.02709961,-3250.16552734,205.88885498,0.00000000,90.00000000,179.99346924); //object(vgssairportland07) (14)
    CreateObject(8172,2232.02636719,-3250.16503906,244.13885498,0.00000000,90.00000000,179.98901367); //object(vgssairportland07) (15)
    CreateObject(8172,2231.64941406,-3089.14160156,205.88885498,0.00000000,90.00000000,179.98352051); //object(vgssairportland07) (16)
    CreateObject(8172,2231.64941406,-3089.14160156,243.38885498,0.00000000,90.00000000,179.98901367); //object(vgssairportland07) (17)
    CreateObject(8172,2170.49829102,-3010.66845703,205.88885498,0.00000000,90.00000000,269.98696899); //object(vgssairportland07) (19)
    CreateObject(8172,2170.49804688,-3010.66796875,244.88885498,0.00000000,90.00000000,269.98352051); //object(vgssairportland07) (20)
    CreateObject(8172,2152.52148438,-3315.61425781,253.88885498,0.04351807,178.00000000,89.95239258); //object(vgssairportland07) (21)
    CreateObject(8172,2151.68554688,-3277.81250000,255.38885498,0.03845215,177.99499512,89.95056152); //object(vgssairportland07) (22)
    CreateObject(8172,2150.27612305,-3237.83203125,255.38885498,0.03845215,177.99499512,89.95056152); //object(vgssairportland07) (23)
    CreateObject(8172,2157.61645508,-3198.25146484,256.38885498,0.03845215,177.99499512,89.95056152); //object(vgssairportland07) (24)
    CreateObject(8172,2154.80249023,-3159.09399414,257.63885498,0.03845215,177.99499512,89.95056152); //object(vgssairportland07) (25)
    CreateObject(8172,2153.11132812,-3122.39038086,258.88885498,0.03845215,177.99499512,89.95056152); //object(vgssairportland07) (26)
    CreateObject(8172,2149.56982422,-3087.16040039,258.88885498,0.03845215,177.99499512,89.95056152); //object(vgssairportland07) (27)
    CreateObject(8172,2150.06445312,-3050.36914062,258.88885498,0.03845215,177.99499512,89.95056152); //object(vgssairportland07) (28)
    CreateObject(8172,2150.11254883,-3027.49267578,258.88885498,0.03845215,177.99499512,89.95056152); //object(vgssairportland07) (29)
    CreateObject(655,2127.89160156,-3279.87109375,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree06) (1)
    CreateObject(655,2131.89794922,-3284.02709961,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree06) (2)
    CreateObject(655,2119.61279297,-3280.61474609,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree06) (3)
    CreateObject(655,2130.60156250,-3270.29150391,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree06) (4)
    CreateObject(655,2139.35937500,-3272.11132812,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree06) (5)
    CreateObject(655,2136.24658203,-3257.41748047,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree06) (6)
    CreateObject(693,2203.40429688,-3176.25195312,195.18984985,0.00000000,0.00000000,0.00000000); //object(sm_redwood_) (1)
    CreateObject(693,2137.80126953,-3207.16064453,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_redwood_) (2)
    CreateObject(693,2119.22070312,-3221.71459961,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_redwood_) (3)
    CreateObject(693,2144.69335938,-3188.21166992,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_redwood_) (4)
    CreateObject(731,2229.57080078,-3255.52612305,189.62322998,0.00000000,0.00000000,0.00000000); //object(tree_hipoly09) (1)
    CreateObject(731,2140.20898438,-3220.52221680,189.62322998,0.00000000,0.00000000,0.00000000); //object(tree_hipoly09) (2)
    CreateObject(18259,2201.80004883,-3321.69995117,191.00000000,0.00000000,0.00000000,265.99548340); //object(logcabinn01) (1)
    CreateObject(1271,2193.89990234,-3318.00000000,191.39999390,0.00000000,0.00000000,0.00000000); //object(gunbox) (1)
    CreateObject(1271,2194.89990234,-3317.19995117,191.39999390,0.00000000,0.00000000,0.00000000); //object(gunbox) (2)
    CreateObject(1271,2195.50000000,-3318.39990234,191.39999390,0.00000000,0.00000000,0.00000000); //object(gunbox) (3)
    CreateObject(1232,2155.81201172,-3277.14721680,192.25987244,0.00000000,0.00000000,0.00000000); //object(streetlamp1) (1)
    CreateObject(1232,2156.03710938,-3258.57153320,192.25987244,0.00000000,0.00000000,0.00000000); //object(streetlamp1) (2)
    CreateObject(1232,2155.64501953,-3239.54956055,192.25987244,0.00000000,0.00000000,0.00000000); //object(streetlamp1) (3)
    CreateObject(1232,2199.69116211,-3257.48461914,192.25987244,0.00000000,0.00000000,0.00000000); //object(streetlamp1) (4)
    CreateObject(1232,2200.38647461,-3279.50000000,192.26768494,0.00000000,0.00000000,0.00000000); //object(streetlamp1) (5)
    CreateObject(1232,2200.64453125,-3238.71582031,192.25987244,0.00000000,0.00000000,0.00000000); //object(streetlamp1) (6)
    CreateObject(658,2136.14721680,-3227.89843750,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree04) (1)
    CreateObject(658,2132.04541016,-3238.78637695,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree04) (2)
    CreateObject(658,2154.72998047,-3232.89208984,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree04) (3)
    CreateObject(658,2137.29394531,-3251.23339844,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree04) (4)
    CreateObject(658,2116.69604492,-3213.15551758,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree04) (5)
    CreateObject(693,2121.45581055,-3243.99633789,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_redwood_) (5)
    CreateObject(1337,2186.61669922,-3192.73095703,243.32922363,0.00000000,0.00000000,0.00000000); //object(binnt07_la) (1)
    CreateObject(987,140.29835510,152.96981812,452.09802246,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (1)
    CreateObject(987,156.38903809,146.63502502,472.82507324,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (2)
    CreateObject(18267,2154.00000000,-3015.89990234,190.80000305,0.00000000,0.00000000,271.99951172); //object(logcabinn) (1)
    CreateObject(842,2214.72192383,-3184.25390625,189.75968933,0.00000000,0.00000000,0.00000000); //object(dead_tree_14) (1)
    CreateObject(661,2216.88232422,-3181.08789062,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree07) (1)
    CreateObject(8172,2234.29882812,-3251.66479492,189.63885498,0.00000000,0.00000000,0.00000000); //object(vgssairportland07) (4)
    CreateObject(661,2212.43872070,-3196.85229492,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree07) (2)
    CreateObject(672,2205.66113281,-3189.51904297,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree5) (1)
    CreateObject(672,2218.58325195,-3185.77929688,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree5) (2)
    CreateObject(8172,2242.28198242,-3074.23364258,205.88885498,0.00000000,90.00000000,179.98352051); //object(vgssairportland07) (16)
    CreateObject(693,2203.40429688,-3176.25195312,195.18984985,0.00000000,0.00000000,0.00000000); //object(sm_redwood_) (1)
    CreateObject(693,2210.13989258,-3217.58203125,195.18984985,0.00000000,0.00000000,0.00000000); //object(sm_redwood_) (1)
    CreateObject(693,2198.41137695,-3224.13378906,195.18984985,0.00000000,0.00000000,0.00000000); //object(sm_redwood_) (1)
    CreateObject(3475,2115.71240234,-3293.26513672,191.99940491,0.00000000,0.00000000,269.99996948); //object(vgsn_fncelec_pst) (1)
    CreateObject(3475,2121.50659180,-3293.02294922,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (2)
    CreateObject(3475,2127.50585938,-3293.00488281,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (3)
    CreateObject(3475,2133.50659180,-3293.23730469,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (4)
    CreateObject(3475,2139.25976562,-3293.33593750,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (5)
    CreateObject(3475,2150.24902344,-3293.72265625,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (6)
    CreateObject(3475,2156.24316406,-3293.93359375,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (7)
    CreateObject(3475,2162.29736328,-3294.11914062,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (8)
    CreateObject(3475,2168.31103516,-3294.44921875,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (9)
    CreateObject(3475,2179.63012695,-3292.94458008,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (10)
    CreateObject(3475,2185.67675781,-3292.98608398,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (11)
    CreateObject(3475,2191.42114258,-3293.18750000,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (12)
    CreateObject(3475,2196.81494141,-3293.26367188,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (13)
    CreateObject(3475,2202.74267578,-3293.24023438,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (14)
    CreateObject(3475,2208.66137695,-3293.30249023,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (15)
    CreateObject(3475,2214.54736328,-3293.37255859,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (16)
    CreateObject(3475,2220.39062500,-3292.89111328,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (17)
    CreateObject(655,2214.33032227,-3323.47851562,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree06) (7)
    CreateObject(655,2225.24267578,-3320.80419922,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree06) (8)
    CreateObject(655,2218.37133789,-3315.34057617,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree06) (9)
    CreateObject(655,2228.65966797,-3305.86621094,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree06) (10)
    CreateObject(660,2212.22753906,-3311.60815430,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree03) (1)
    CreateObject(660,2221.46142578,-3307.38769531,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree03) (2)
    CreateObject(660,2208.82275391,-3310.79394531,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree03) (3)
    CreateObject(670,2225.12890625,-3300.80810547,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_firtallded) (1)
    CreateObject(670,2216.42089844,-3313.33691406,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_firtallded) (2)
    CreateObject(688,2121.90625000,-3321.43481445,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_scabg) (1)
    CreateObject(688,2121.90625000,-3321.43481445,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_scabg) (2)
    CreateObject(659,2117.81323242,-3311.50512695,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree01) (1)
    CreateObject(659,2117.79296875,-3316.50488281,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree01) (2)
    CreateObject(659,2124.30957031,-3312.28027344,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree01) (3)
    CreateObject(659,2117.35546875,-3300.50292969,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree01) (4)
    CreateObject(659,2124.87207031,-3296.28222656,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree01) (5)
    CreateObject(659,2124.83593750,-3305.53222656,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree01) (6)
    CreateObject(659,2124.83593750,-3305.53222656,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree01) (7)
    CreateObject(689,2129.04833984,-3301.96801758,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (1)
    CreateObject(689,2142.01489258,-3316.05932617,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (2)
    CreateObject(689,2176.60498047,-3316.57519531,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (3)
    CreateObject(689,2202.00390625,-3257.33032227,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (4)
    CreateObject(689,2138.70458984,-3021.32934570,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (5)
    CreateObject(8172,2130.80151367,-3092.55078125,189.63885498,0.00000000,0.00000000,0.00000000); //object(vgssairportland07) (2)
    CreateObject(689,2125.21728516,-3021.80371094,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (6)
    CreateObject(689,2123.11108398,-3040.13256836,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (7)
    CreateObject(689,2135.75537109,-3038.87548828,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (8)
    CreateObject(689,2129.49121094,-3055.62890625,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (9)
    CreateObject(689,2124.64990234,-3073.00659180,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (10)
    CreateObject(689,2124.46044922,-3089.63623047,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (11)
    CreateObject(689,2122.79833984,-3103.75854492,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (12)
    CreateObject(689,2138.03344727,-3100.08325195,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (13)
    CreateObject(689,2138.03344727,-3100.08325195,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (14)
    CreateObject(689,2125.89990234,-3119.60009766,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (9)
    CreateObject(689,2140.60009766,-3123.10009766,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (9)
    CreateObject(689,2136.10009766,-3137.39990234,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (9)
    CreateObject(689,2125.39990234,-3153.30004883,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (9)
    CreateObject(689,2142.69995117,-3170.69995117,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (9)
    CreateObject(689,2128.19995117,-3193.69995117,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (9)
    CreateObject(658,2206.00000000,-3048.00000000,189.60000610,0.00000000,0.00000000,0.00000000); //object(pinetree04) (6)
    CreateObject(658,2216.89990234,-3051.19995117,189.60000610,0.00000000,0.00000000,0.00000000); //object(pinetree04) (7)
    CreateObject(658,2210.00000000,-3067.89990234,189.60000610,0.00000000,0.00000000,0.00000000); //object(pinetree04) (8)
    CreateObject(658,2204.30004883,-3058.50000000,189.60000610,0.00000000,0.00000000,0.00000000); //object(pinetree04) (9)
    CreateObject(661,2201.30004883,-3039.19995117,189.60000610,0.00000000,0.00000000,0.00000000); //object(pinetree07) (3)
    CreateObject(661,2221.69995117,-3026.50000000,189.60000610,0.00000000,0.00000000,0.00000000); //object(pinetree07) (4)
    CreateObject(661,2217.00000000,-3049.50000000,189.60000610,0.00000000,0.00000000,0.00000000); //object(pinetree07) (5)
    CreateObject(670,2220.80004883,-3059.19995117,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_firtallded) (3)
    CreateObject(670,2215.50000000,-3083.00000000,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_firtallded) (4)
    CreateObject(683,2223.00000000,-3095.19995117,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_group) (1)
    CreateObject(683,2220.30004883,-3083.89990234,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_group) (2)
    CreateObject(683,2204.80004883,-3078.39990234,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_group) (3)
    CreateObject(683,2205.50000000,-3095.50000000,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_group) (4)
    CreateObject(683,2201.50000000,-3109.39990234,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_group) (5)
    CreateObject(683,2221.89990234,-3105.89990234,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_group) (6)
    CreateObject(683,2208.10009766,-3119.50000000,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_group) (7)
    CreateObject(690,2217.30004883,-3133.19995117,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse2) (1)
    CreateObject(690,2203.89990234,-3148.50000000,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse2) (2)
    CreateObject(690,2222.10009766,-3150.00000000,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse2) (3)
    CreateObject(690,2202.69995117,-3165.39990234,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse2) (4)
    CreateObject(690,2223.30004883,-3164.80004883,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse2) (5)
    CreateObject(1295,2155.30004883,-3064.69995117,194.89999390,0.00000000,0.00000000,0.00000000); //object(doublestreetlght1) (1)
    CreateObject(1295,2155.69995117,-3077.39990234,194.89999390,0.00000000,0.00000000,0.00000000); //object(doublestreetlght1) (2)
    CreateObject(1295,2156.00000000,-3086.89990234,194.89999390,0.00000000,0.00000000,0.00000000); //object(doublestreetlght1) (3)
    CreateObject(1295,2156.39990234,-3101.39990234,194.89999390,0.00000000,0.00000000,0.00000000); //object(doublestreetlght1) (4)
    CreateObject(1295,2190.50000000,-3050.89990234,194.89999390,0.00000000,0.00000000,0.00000000); //object(doublestreetlght1) (5)
    CreateObject(1295,2191.30004883,-3065.89990234,194.89999390,0.00000000,0.00000000,0.00000000); //object(doublestreetlght1) (6)
    CreateObject(1295,2192.10009766,-3079.89990234,194.89999390,0.00000000,0.00000000,0.00000000); //object(doublestreetlght1) (7)
    CreateObject(1295,2192.09960938,-3079.89941406,194.89999390,0.00000000,0.00000000,0.00000000); //object(doublestreetlght1) (8)
    CreateObject(1295,2192.69995117,-3091.60009766,194.89999390,0.00000000,0.00000000,0.00000000); //object(doublestreetlght1) (9)
    CreateObject(1295,2193.39990234,-3104.60009766,194.89999390,0.00000000,0.00000000,0.00000000); //object(doublestreetlght1) (10)
    CreateObject(1295,2203.80004883,-3098.50000000,194.89999390,0.00000000,0.00000000,0.00000000); //object(doublestreetlght1) (11)
    CreateObject(3475,2115.30004883,-3052.39990234,192.00000000,0.00000000,0.00000000,82.00000000); //object(vgsn_fncelec_pst) (18)
    CreateObject(3475,2121.30004883,-3053.10009766,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (19)
    CreateObject(3475,2127.19995117,-3053.89990234,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (20)
    CreateObject(3475,2133.39990234,-3054.80004883,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (21)
    CreateObject(3475,2139.30004883,-3055.60009766,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (22)
    CreateObject(3475,2145.19995117,-3056.39990234,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (23)
    CreateObject(3475,2155.30004883,-3057.80004883,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (24)
    CreateObject(3475,2161.00000000,-3058.60009766,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (25)
    CreateObject(3475,2166.89990234,-3059.39990234,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (26)
    CreateObject(3475,2178.30004883,-3061.00000000,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (27)
    CreateObject(3475,2184.00000000,-3061.80004883,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (28)
    CreateObject(3475,2189.89990234,-3062.60009766,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (29)
    CreateObject(3475,2199.60009766,-3063.89990234,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (30)
    CreateObject(3475,2205.30004883,-3064.69995117,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (31)
    CreateObject(3475,2211.00000000,-3065.50000000,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (32)
    CreateObject(3475,2221.10009766,-3066.89990234,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (33)
    CreateObject(3475,2227.00000000,-3067.69995117,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (34)
    CreateObject(3475,2233.19995117,-3068.60009766,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (35)
    CreateObject(1424,2169.10009766,-3065.69995117,190.10000610,0.00000000,0.00000000,92.00000000); //object(dyn_roadbarrier_2) (1)
    CreateObject(1424,2169.10009766,-3068.50000000,190.10000610,0.00000000,0.00000000,91.99951172); //object(dyn_roadbarrier_2) (2)
    CreateObject(1424,2169.10009766,-3071.00000000,190.10000610,0.00000000,0.00000000,91.99951172); //object(dyn_roadbarrier_2) (3)
    CreateObject(1424,2176.10009766,-3065.89990234,190.10000610,0.00000000,0.00000000,91.99951172); //object(dyn_roadbarrier_2) (4)
    CreateObject(1424,2176.39990234,-3068.69995117,190.10000610,0.00000000,0.00000000,91.99951172); //object(dyn_roadbarrier_2) (5)
    CreateObject(1424,2176.19995117,-3071.39990234,190.10000610,0.00000000,0.00000000,91.99951172); //object(dyn_roadbarrier_2) (6)
    CreateObject(3014,2162.10009766,-3019.60009766,191.10000610,0.00000000,0.00000000,0.00000000); //object(cr_guncrate) (1)
    CreateObject(3014,2161.60009766,-3018.39990234,191.10000610,0.00000000,0.00000000,0.00000000); //object(cr_guncrate) (2)
    CreateObject(3014,2160.00000000,-3019.50000000,191.10000610,0.00000000,0.00000000,0.00000000); //object(cr_guncrate) (3)
    CreateObject(3014,2162.30004883,-3017.50000000,191.10000610,0.00000000,0.00000000,0.00000000); //object(cr_guncrate) (4)
    return 1;
}
And I still get errors. There the same ones.

pawn Код:
C:\Documents and Settings\Lucas\Desktop\Serverstuff\MyTestServerV1.0\filterscripts\minigame.pwn(14) : error 001: expected token: "}", but found "-label-"
C:\Documents and Settings\Lucas\Desktop\Serverstuff\MyTestServerV1.0\filterscripts\minigame.pwn(37) : error 026: no matching "#if..."
C:\Documents and Settings\Lucas\Desktop\Serverstuff\MyTestServerV1.0\filterscripts\minigame.pwn(46) : error 026: no matching "#if..."
C:\Documents and Settings\Lucas\Desktop\Serverstuff\MyTestServerV1.0\filterscripts\minigame.pwn(299) : error 017: undefined symbol "Y"
C:\Documents and Settings\Lucas\Desktop\Serverstuff\MyTestServerV1.0\filterscripts\minigame.pwn(300) : error 017: undefined symbol "A"
C:\Documents and Settings\Lucas\Desktop\Serverstuff\MyTestServerV1.0\filterscripts\minigame.pwn(331) : error 017: undefined symbol "Y"
C:\Documents and Settings\Lucas\Desktop\Serverstuff\MyTestServerV1.0\filterscripts\minigame.pwn(331) : warning 213: tag mismatch
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


6 Errors.
Reply
#4

Just fixed and compiled without errors

Please dont just copy, but also try to compare where was errors etc
pawn Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include <a_samp>
#include <zcmd>

#define COLOR_GREEN 0x36D40BFF
#define COLOR_RED 0xF20A25FF

enum _pos_data
{
    Float:X,
    Float:Y, //Error here
    Float:Z,
    Float:A,
};

new pData[_pos_data];
new bool:PartyStarted;
new bool:AtParty[MAX_PLAYERS];


public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" MiniGame FilterScript by Rangerxxll");
    print("--------------------------------------\n");
    AddStaticVehicleEx(500,2189.72778320,-3321.40234375,190.84323120,0.00000000,-1,-1,15); //Mesa
    AddStaticVehicleEx(579,2166.54199219,-3019.12744141,190.72186279,184.00000000,-1,-1,15); //Huntley
    AddStaticVehicleEx(468,2186.10009766,-3319.60009766,190.39999390,0.00000000,-1,-1,15); //Sanchez
    AddStaticVehicleEx(468,2171.19995117,-3018.60009766,190.39999390,179.99993896,-1,-1,15); //Sanchez
    CreateObject(8172,2172.39941406,-3091.58593750,189.63885498,0.00000000,0.00000000,0.00000000); //object(vgssairportland07) (1)
    CreateObject(8172,2132.54980469,-3092.48925781,189.63885498,0.00000000,0.00000000,0.00000000); //object(vgssairportland07) (2)
    CreateObject(8172,2212.19799805,-3090.98217773,189.63885498,0.00000000,0.00000000,0.00000000); //object(vgssairportland07) (3)
    CreateObject(8172,2212.02636719,-3252.13378906,189.63885498,0.00000000,0.00000000,0.00000000); //object(vgssairportland07) (4)
    CreateObject(8172,2172.15820312,-3252.09375000,189.63885498,0.00000000,0.00000000,0.00000000); //object(vgssairportland07) (5)
    CreateObject(8172,2132.39575195,-3253.78295898,189.63885498,0.00000000,0.00000000,0.00000000); //object(vgssairportland07) (6)
    CreateObject(8172,2112.06176758,-3090.80102539,205.88885498,0.00000000,90.00000000,0.00000000); //object(vgssairportland07) (8)
    CreateObject(8172,2112.42456055,-3251.20751953,205.88885498,0.00000000,90.00000000,0.00000000); //object(vgssairportland07) (9)
    CreateObject(8172,2112.42382812,-3251.20703125,244.88885498,0.00000000,90.00000000,0.00000000); //object(vgssairportland07) (10)
    CreateObject(8172,2112.06152344,-3090.80078125,245.38885498,0.00000000,90.00000000,0.00000000); //object(vgssairportland07) (11)
    CreateObject(8172,2192.90356445,-3330.00708008,205.88885498,0.00000000,90.00000000,89.99850464); //object(vgssairportland07) (12)
    CreateObject(8172,2192.90332031,-3330.00683594,244.38885498,0.00000000,90.00000000,89.99450684); //object(vgssairportland07) (13)
    CreateObject(8172,2232.02709961,-3250.16552734,205.88885498,0.00000000,90.00000000,179.99346924); //object(vgssairportland07) (14)
    CreateObject(8172,2232.02636719,-3250.16503906,244.13885498,0.00000000,90.00000000,179.98901367); //object(vgssairportland07) (15)
    CreateObject(8172,2231.64941406,-3089.14160156,205.88885498,0.00000000,90.00000000,179.98352051); //object(vgssairportland07) (16)
    CreateObject(8172,2231.64941406,-3089.14160156,243.38885498,0.00000000,90.00000000,179.98901367); //object(vgssairportland07) (17)
    CreateObject(8172,2170.49829102,-3010.66845703,205.88885498,0.00000000,90.00000000,269.98696899); //object(vgssairportland07) (19)
    CreateObject(8172,2170.49804688,-3010.66796875,244.88885498,0.00000000,90.00000000,269.98352051); //object(vgssairportland07) (20)
    CreateObject(8172,2152.52148438,-3315.61425781,253.88885498,0.04351807,178.00000000,89.95239258); //object(vgssairportland07) (21)
    CreateObject(8172,2151.68554688,-3277.81250000,255.38885498,0.03845215,177.99499512,89.95056152); //object(vgssairportland07) (22)
    CreateObject(8172,2150.27612305,-3237.83203125,255.38885498,0.03845215,177.99499512,89.95056152); //object(vgssairportland07) (23)
    CreateObject(8172,2157.61645508,-3198.25146484,256.38885498,0.03845215,177.99499512,89.95056152); //object(vgssairportland07) (24)
    CreateObject(8172,2154.80249023,-3159.09399414,257.63885498,0.03845215,177.99499512,89.95056152); //object(vgssairportland07) (25)
    CreateObject(8172,2153.11132812,-3122.39038086,258.88885498,0.03845215,177.99499512,89.95056152); //object(vgssairportland07) (26)
    CreateObject(8172,2149.56982422,-3087.16040039,258.88885498,0.03845215,177.99499512,89.95056152); //object(vgssairportland07) (27)
    CreateObject(8172,2150.06445312,-3050.36914062,258.88885498,0.03845215,177.99499512,89.95056152); //object(vgssairportland07) (28)
    CreateObject(8172,2150.11254883,-3027.49267578,258.88885498,0.03845215,177.99499512,89.95056152); //object(vgssairportland07) (29)
    CreateObject(655,2127.89160156,-3279.87109375,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree06) (1)
    CreateObject(655,2131.89794922,-3284.02709961,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree06) (2)
    CreateObject(655,2119.61279297,-3280.61474609,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree06) (3)
    CreateObject(655,2130.60156250,-3270.29150391,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree06) (4)
    CreateObject(655,2139.35937500,-3272.11132812,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree06) (5)
    CreateObject(655,2136.24658203,-3257.41748047,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree06) (6)
    CreateObject(693,2203.40429688,-3176.25195312,195.18984985,0.00000000,0.00000000,0.00000000); //object(sm_redwood_) (1)
    CreateObject(693,2137.80126953,-3207.16064453,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_redwood_) (2)
    CreateObject(693,2119.22070312,-3221.71459961,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_redwood_) (3)
    CreateObject(693,2144.69335938,-3188.21166992,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_redwood_) (4)
    CreateObject(731,2229.57080078,-3255.52612305,189.62322998,0.00000000,0.00000000,0.00000000); //object(tree_hipoly09) (1)
    CreateObject(731,2140.20898438,-3220.52221680,189.62322998,0.00000000,0.00000000,0.00000000); //object(tree_hipoly09) (2)
    CreateObject(18259,2201.80004883,-3321.69995117,191.00000000,0.00000000,0.00000000,265.99548340); //object(logcabinn01) (1)
    CreateObject(1271,2193.89990234,-3318.00000000,191.39999390,0.00000000,0.00000000,0.00000000); //object(gunbox) (1)
    CreateObject(1271,2194.89990234,-3317.19995117,191.39999390,0.00000000,0.00000000,0.00000000); //object(gunbox) (2)
    CreateObject(1271,2195.50000000,-3318.39990234,191.39999390,0.00000000,0.00000000,0.00000000); //object(gunbox) (3)
    CreateObject(1232,2155.81201172,-3277.14721680,192.25987244,0.00000000,0.00000000,0.00000000); //object(streetlamp1) (1)
    CreateObject(1232,2156.03710938,-3258.57153320,192.25987244,0.00000000,0.00000000,0.00000000); //object(streetlamp1) (2)
    CreateObject(1232,2155.64501953,-3239.54956055,192.25987244,0.00000000,0.00000000,0.00000000); //object(streetlamp1) (3)
    CreateObject(1232,2199.69116211,-3257.48461914,192.25987244,0.00000000,0.00000000,0.00000000); //object(streetlamp1) (4)
    CreateObject(1232,2200.38647461,-3279.50000000,192.26768494,0.00000000,0.00000000,0.00000000); //object(streetlamp1) (5)
    CreateObject(1232,2200.64453125,-3238.71582031,192.25987244,0.00000000,0.00000000,0.00000000); //object(streetlamp1) (6)
    CreateObject(658,2136.14721680,-3227.89843750,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree04) (1)
    CreateObject(658,2132.04541016,-3238.78637695,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree04) (2)
    CreateObject(658,2154.72998047,-3232.89208984,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree04) (3)
    CreateObject(658,2137.29394531,-3251.23339844,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree04) (4)
    CreateObject(658,2116.69604492,-3213.15551758,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree04) (5)
    CreateObject(693,2121.45581055,-3243.99633789,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_redwood_) (5)
    CreateObject(1337,2186.61669922,-3192.73095703,243.32922363,0.00000000,0.00000000,0.00000000); //object(binnt07_la) (1)
    CreateObject(987,140.29835510,152.96981812,452.09802246,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (1)
    CreateObject(987,156.38903809,146.63502502,472.82507324,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (2)
    CreateObject(18267,2154.00000000,-3015.89990234,190.80000305,0.00000000,0.00000000,271.99951172); //object(logcabinn) (1)
    CreateObject(842,2214.72192383,-3184.25390625,189.75968933,0.00000000,0.00000000,0.00000000); //object(dead_tree_14) (1)
    CreateObject(661,2216.88232422,-3181.08789062,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree07) (1)
    CreateObject(8172,2234.29882812,-3251.66479492,189.63885498,0.00000000,0.00000000,0.00000000); //object(vgssairportland07) (4)
    CreateObject(661,2212.43872070,-3196.85229492,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree07) (2)
    CreateObject(672,2205.66113281,-3189.51904297,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree5) (1)
    CreateObject(672,2218.58325195,-3185.77929688,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree5) (2)
    CreateObject(8172,2242.28198242,-3074.23364258,205.88885498,0.00000000,90.00000000,179.98352051); //object(vgssairportland07) (16)
    CreateObject(693,2203.40429688,-3176.25195312,195.18984985,0.00000000,0.00000000,0.00000000); //object(sm_redwood_) (1)
    CreateObject(693,2210.13989258,-3217.58203125,195.18984985,0.00000000,0.00000000,0.00000000); //object(sm_redwood_) (1)
    CreateObject(693,2198.41137695,-3224.13378906,195.18984985,0.00000000,0.00000000,0.00000000); //object(sm_redwood_) (1)
    CreateObject(3475,2115.71240234,-3293.26513672,191.99940491,0.00000000,0.00000000,269.99996948); //object(vgsn_fncelec_pst) (1)
    CreateObject(3475,2121.50659180,-3293.02294922,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (2)
    CreateObject(3475,2127.50585938,-3293.00488281,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (3)
    CreateObject(3475,2133.50659180,-3293.23730469,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (4)
    CreateObject(3475,2139.25976562,-3293.33593750,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (5)
    CreateObject(3475,2150.24902344,-3293.72265625,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (6)
    CreateObject(3475,2156.24316406,-3293.93359375,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (7)
    CreateObject(3475,2162.29736328,-3294.11914062,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (8)
    CreateObject(3475,2168.31103516,-3294.44921875,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (9)
    CreateObject(3475,2179.63012695,-3292.94458008,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (10)
    CreateObject(3475,2185.67675781,-3292.98608398,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (11)
    CreateObject(3475,2191.42114258,-3293.18750000,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (12)
    CreateObject(3475,2196.81494141,-3293.26367188,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (13)
    CreateObject(3475,2202.74267578,-3293.24023438,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (14)
    CreateObject(3475,2208.66137695,-3293.30249023,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (15)
    CreateObject(3475,2214.54736328,-3293.37255859,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (16)
    CreateObject(3475,2220.39062500,-3292.89111328,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (17)
    CreateObject(655,2214.33032227,-3323.47851562,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree06) (7)
    CreateObject(655,2225.24267578,-3320.80419922,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree06) (8)
    CreateObject(655,2218.37133789,-3315.34057617,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree06) (9)
    CreateObject(655,2228.65966797,-3305.86621094,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree06) (10)
    CreateObject(660,2212.22753906,-3311.60815430,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree03) (1)
    CreateObject(660,2221.46142578,-3307.38769531,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree03) (2)
    CreateObject(660,2208.82275391,-3310.79394531,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree03) (3)
    CreateObject(670,2225.12890625,-3300.80810547,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_firtallded) (1)
    CreateObject(670,2216.42089844,-3313.33691406,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_firtallded) (2)
    CreateObject(688,2121.90625000,-3321.43481445,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_scabg) (1)
    CreateObject(688,2121.90625000,-3321.43481445,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_scabg) (2)
    CreateObject(659,2117.81323242,-3311.50512695,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree01) (1)
    CreateObject(659,2117.79296875,-3316.50488281,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree01) (2)
    CreateObject(659,2124.30957031,-3312.28027344,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree01) (3)
    CreateObject(659,2117.35546875,-3300.50292969,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree01) (4)
    CreateObject(659,2124.87207031,-3296.28222656,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree01) (5)
    CreateObject(659,2124.83593750,-3305.53222656,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree01) (6)
    CreateObject(659,2124.83593750,-3305.53222656,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree01) (7)
    CreateObject(689,2129.04833984,-3301.96801758,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (1)
    CreateObject(689,2142.01489258,-3316.05932617,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (2)
    CreateObject(689,2176.60498047,-3316.57519531,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (3)
    CreateObject(689,2202.00390625,-3257.33032227,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (4)
    CreateObject(689,2138.70458984,-3021.32934570,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (5)
    CreateObject(8172,2130.80151367,-3092.55078125,189.63885498,0.00000000,0.00000000,0.00000000); //object(vgssairportland07) (2)
    CreateObject(689,2125.21728516,-3021.80371094,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (6)
    CreateObject(689,2123.11108398,-3040.13256836,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (7)
    CreateObject(689,2135.75537109,-3038.87548828,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (8)
    CreateObject(689,2129.49121094,-3055.62890625,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (9)
    CreateObject(689,2124.64990234,-3073.00659180,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (10)
    CreateObject(689,2124.46044922,-3089.63623047,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (11)
    CreateObject(689,2122.79833984,-3103.75854492,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (12)
    CreateObject(689,2138.03344727,-3100.08325195,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (13)
    CreateObject(689,2138.03344727,-3100.08325195,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (14)
    CreateObject(689,2125.89990234,-3119.60009766,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (9)
    CreateObject(689,2140.60009766,-3123.10009766,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (9)
    CreateObject(689,2136.10009766,-3137.39990234,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (9)
    CreateObject(689,2125.39990234,-3153.30004883,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (9)
    CreateObject(689,2142.69995117,-3170.69995117,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (9)
    CreateObject(689,2128.19995117,-3193.69995117,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (9)
    CreateObject(658,2206.00000000,-3048.00000000,189.60000610,0.00000000,0.00000000,0.00000000); //object(pinetree04) (6)
    CreateObject(658,2216.89990234,-3051.19995117,189.60000610,0.00000000,0.00000000,0.00000000); //object(pinetree04) (7)
    CreateObject(658,2210.00000000,-3067.89990234,189.60000610,0.00000000,0.00000000,0.00000000); //object(pinetree04) (8)
    CreateObject(658,2204.30004883,-3058.50000000,189.60000610,0.00000000,0.00000000,0.00000000); //object(pinetree04) (9)
    CreateObject(661,2201.30004883,-3039.19995117,189.60000610,0.00000000,0.00000000,0.00000000); //object(pinetree07) (3)
    CreateObject(661,2221.69995117,-3026.50000000,189.60000610,0.00000000,0.00000000,0.00000000); //object(pinetree07) (4)
    CreateObject(661,2217.00000000,-3049.50000000,189.60000610,0.00000000,0.00000000,0.00000000); //object(pinetree07) (5)
    CreateObject(670,2220.80004883,-3059.19995117,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_firtallded) (3)
    CreateObject(670,2215.50000000,-3083.00000000,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_firtallded) (4)
    CreateObject(683,2223.00000000,-3095.19995117,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_group) (1)
    CreateObject(683,2220.30004883,-3083.89990234,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_group) (2)
    CreateObject(683,2204.80004883,-3078.39990234,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_group) (3)
    CreateObject(683,2205.50000000,-3095.50000000,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_group) (4)
    CreateObject(683,2201.50000000,-3109.39990234,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_group) (5)
    CreateObject(683,2221.89990234,-3105.89990234,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_group) (6)
    CreateObject(683,2208.10009766,-3119.50000000,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_group) (7)
    CreateObject(690,2217.30004883,-3133.19995117,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse2) (1)
    CreateObject(690,2203.89990234,-3148.50000000,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse2) (2)
    CreateObject(690,2222.10009766,-3150.00000000,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse2) (3)
    CreateObject(690,2202.69995117,-3165.39990234,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse2) (4)
    CreateObject(690,2223.30004883,-3164.80004883,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse2) (5)
    CreateObject(1295,2155.30004883,-3064.69995117,194.89999390,0.00000000,0.00000000,0.00000000); //object(doublestreetlght1) (1)
    CreateObject(1295,2155.69995117,-3077.39990234,194.89999390,0.00000000,0.00000000,0.00000000); //object(doublestreetlght1) (2)
    CreateObject(1295,2156.00000000,-3086.89990234,194.89999390,0.00000000,0.00000000,0.00000000); //object(doublestreetlght1) (3)
    CreateObject(1295,2156.39990234,-3101.39990234,194.89999390,0.00000000,0.00000000,0.00000000); //object(doublestreetlght1) (4)
    CreateObject(1295,2190.50000000,-3050.89990234,194.89999390,0.00000000,0.00000000,0.00000000); //object(doublestreetlght1) (5)
    CreateObject(1295,2191.30004883,-3065.89990234,194.89999390,0.00000000,0.00000000,0.00000000); //object(doublestreetlght1) (6)
    CreateObject(1295,2192.10009766,-3079.89990234,194.89999390,0.00000000,0.00000000,0.00000000); //object(doublestreetlght1) (7)
    CreateObject(1295,2192.09960938,-3079.89941406,194.89999390,0.00000000,0.00000000,0.00000000); //object(doublestreetlght1) (8)
    CreateObject(1295,2192.69995117,-3091.60009766,194.89999390,0.00000000,0.00000000,0.00000000); //object(doublestreetlght1) (9)
    CreateObject(1295,2193.39990234,-3104.60009766,194.89999390,0.00000000,0.00000000,0.00000000); //object(doublestreetlght1) (10)
    CreateObject(1295,2203.80004883,-3098.50000000,194.89999390,0.00000000,0.00000000,0.00000000); //object(doublestreetlght1) (11)
    CreateObject(3475,2115.30004883,-3052.39990234,192.00000000,0.00000000,0.00000000,82.00000000); //object(vgsn_fncelec_pst) (18)
    CreateObject(3475,2121.30004883,-3053.10009766,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (19)
    CreateObject(3475,2127.19995117,-3053.89990234,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (20)
    CreateObject(3475,2133.39990234,-3054.80004883,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (21)
    CreateObject(3475,2139.30004883,-3055.60009766,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (22)
    CreateObject(3475,2145.19995117,-3056.39990234,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (23)
    CreateObject(3475,2155.30004883,-3057.80004883,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (24)
    CreateObject(3475,2161.00000000,-3058.60009766,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (25)
    CreateObject(3475,2166.89990234,-3059.39990234,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (26)
    CreateObject(3475,2178.30004883,-3061.00000000,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (27)
    CreateObject(3475,2184.00000000,-3061.80004883,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (28)
    CreateObject(3475,2189.89990234,-3062.60009766,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (29)
    CreateObject(3475,2199.60009766,-3063.89990234,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (30)
    CreateObject(3475,2205.30004883,-3064.69995117,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (31)
    CreateObject(3475,2211.00000000,-3065.50000000,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (32)
    CreateObject(3475,2221.10009766,-3066.89990234,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (33)
    CreateObject(3475,2227.00000000,-3067.69995117,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (34)
    CreateObject(3475,2233.19995117,-3068.60009766,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (35)
    CreateObject(1424,2169.10009766,-3065.69995117,190.10000610,0.00000000,0.00000000,92.00000000); //object(dyn_roadbarrier_2) (1)
    CreateObject(1424,2169.10009766,-3068.50000000,190.10000610,0.00000000,0.00000000,91.99951172); //object(dyn_roadbarrier_2) (2)
    CreateObject(1424,2169.10009766,-3071.00000000,190.10000610,0.00000000,0.00000000,91.99951172); //object(dyn_roadbarrier_2) (3)
    CreateObject(1424,2176.10009766,-3065.89990234,190.10000610,0.00000000,0.00000000,91.99951172); //object(dyn_roadbarrier_2) (4)
    CreateObject(1424,2176.39990234,-3068.69995117,190.10000610,0.00000000,0.00000000,91.99951172); //object(dyn_roadbarrier_2) (5)
    CreateObject(1424,2176.19995117,-3071.39990234,190.10000610,0.00000000,0.00000000,91.99951172); //object(dyn_roadbarrier_2) (6)
    CreateObject(3014,2162.10009766,-3019.60009766,191.10000610,0.00000000,0.00000000,0.00000000); //object(cr_guncrate) (1)
    CreateObject(3014,2161.60009766,-3018.39990234,191.10000610,0.00000000,0.00000000,0.00000000); //object(cr_guncrate) (2)
    CreateObject(3014,2160.00000000,-3019.50000000,191.10000610,0.00000000,0.00000000,0.00000000); //object(cr_guncrate) (3)
    CreateObject(3014,2162.30004883,-3017.50000000,191.10000610,0.00000000,0.00000000,0.00000000); //object(cr_guncrate) (4)
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}
public OnPlayerConnect(playerid)
{
    AtParty[playerid] = false;
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/event", true) == 0)
    {
        if(IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_RED, "You're not authorized to use this Command");
        {
            GetPlayerPos(playerid, pData[X], pData[Y], pData[Z]); //Error here
            GetPlayerFacingAngle(playerid, pData[A]); //Error here
            SendClientMessageToAll(COLOR_GREEN, "A Event has been started. Use /join to join the event.");
            PartyStarted = true;
            return 1;
        }
    }

    if(strcmp(cmdtext, "/join", true) == 0)
    {
        if(PartyStarted == false) return SendClientMessage(playerid, COLOR_RED, "No one has started a event yet.");
        if(AtParty[playerid] == true) return SendClientMessage(playerid, COLOR_RED, "You're already in the event, type /leave to leave.");
        SetPlayerPos(playerid, 2169.0952,-3170.2466,190);
        SetPlayerFacingAngle(playerid, 344.3667);
        AtParty[playerid] = true;
        SendClientMessage(playerid, COLOR_GREEN, "Welcome to the Event, if you wish to leave use /leave.");
        return 1;
    }

    if(strcmp(cmdtext, "/leave", true) == 0)
    {
        if(AtParty[playerid] == false) return SendClientMessage(playerid, COLOR_RED, "You're not at the Event.");
        SpawnPlayer(playerid);
        AtParty[playerid] = false;
        return 1;
    }

    if(strcmp(cmdtext, "/cancel", true) == 0)
    {
        if(IsPlayerAdmin(playerid))
        {
            if(PartyStarted == false) return SendClientMessage(playerid, COLOR_RED, "There is no Event to cancel.");
            pData[X] = 0.00, pData[Y] = 0.00, pData[Z] = 0.00, pData[A] = 0.00; // Warning and Error here
            for(new i = 0; i < MAX_PLAYERS; i++)
            {
                if(AtParty[i] == true)
                {
                    AtParty[i] = false;
                    SpawnPlayer(i);
                }
            }
            PartyStarted = false;
            return 1;
        }
    }
    return 0;
}

COMMAND:minigame(playerid, cmdtext)
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000FF, "You're not authorized to use this Command");
    SetPlayerPos(playerid, 2169.0952,-3170.2466,190);
    return 1;
}

COMMAND:getweapons(playerid, cmdtext)
{
    if (!IsPlayerInRangeOfPoint(playerid, 7.0, 2196.2363,-3319.5674,192) && !IsPlayerInRangeOfPoint(playerid, 7.0, 2160.5581,-3017.5974,191))
    {
        SendClientMessage(playerid, 0xFF0000FF, "You're not near the weapon crates"); return 1;
    }
    ShowPlayerDialog(playerid, 32, DIALOG_STYLE_LIST, "Pick a weapon:", "Deagle\nCombat Shotgun\nAK47\nTearGas\nChainsaw\nSniper\nMinigun\nFlamethrower", "Pick", "Close");
    return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 32)
    {
        if(!response) return 1; // if he clicked the other button, stop the code
        switch(listitem) // Switch trough all list items
        {
            case 0: GivePlayerWeapon(playerid, 24, 100);
            case 1: GivePlayerWeapon(playerid, 27, 100);
            case 2: GivePlayerWeapon(playerid, 30, 200);
            case 3: GivePlayerWeapon(playerid, 17, 10);
            case 4: GivePlayerWeapon(playerid, 9, 1);
            case 5: GivePlayerWeapon(playerid, 34, 100);
            case 6: GivePlayerWeapon(playerid, 38, 500);
            case 7: GivePlayerWeapon(playerid, 37, 500);
        }
    }
    return 1;
}
Reply
#5

This FS or GAMEMODE, whatever, has more errors then lines, try to script your own, I guess you wanna create dm minigame, search in forums there are some good examples
Reply
#6

Quote:
Originally Posted by Voldemort
Посмотреть сообщение
Just fixed and compiled without errors

Please dont just copy, but also try to compare where was errors etc
pawn Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include <a_samp>
#include <zcmd>

#define COLOR_GREEN 0x36D40BFF
#define COLOR_RED 0xF20A25FF

enum _pos_data
{
    Float:X,
    Float:Y, //Error here
    Float:Z,
    Float:A,
};

new pData[_pos_data];
new bool:PartyStarted;
new bool:AtParty[MAX_PLAYERS];


public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" MiniGame FilterScript by Rangerxxll");
    print("--------------------------------------\n");
    AddStaticVehicleEx(500,2189.72778320,-3321.40234375,190.84323120,0.00000000,-1,-1,15); //Mesa
    AddStaticVehicleEx(579,2166.54199219,-3019.12744141,190.72186279,184.00000000,-1,-1,15); //Huntley
    AddStaticVehicleEx(468,2186.10009766,-3319.60009766,190.39999390,0.00000000,-1,-1,15); //Sanchez
    AddStaticVehicleEx(468,2171.19995117,-3018.60009766,190.39999390,179.99993896,-1,-1,15); //Sanchez
    CreateObject(8172,2172.39941406,-3091.58593750,189.63885498,0.00000000,0.00000000,0.00000000); //object(vgssairportland07) (1)
    CreateObject(8172,2132.54980469,-3092.48925781,189.63885498,0.00000000,0.00000000,0.00000000); //object(vgssairportland07) (2)
    CreateObject(8172,2212.19799805,-3090.98217773,189.63885498,0.00000000,0.00000000,0.00000000); //object(vgssairportland07) (3)
    CreateObject(8172,2212.02636719,-3252.13378906,189.63885498,0.00000000,0.00000000,0.00000000); //object(vgssairportland07) (4)
    CreateObject(8172,2172.15820312,-3252.09375000,189.63885498,0.00000000,0.00000000,0.00000000); //object(vgssairportland07) (5)
    CreateObject(8172,2132.39575195,-3253.78295898,189.63885498,0.00000000,0.00000000,0.00000000); //object(vgssairportland07) (6)
    CreateObject(8172,2112.06176758,-3090.80102539,205.88885498,0.00000000,90.00000000,0.00000000); //object(vgssairportland07) (8)
    CreateObject(8172,2112.42456055,-3251.20751953,205.88885498,0.00000000,90.00000000,0.00000000); //object(vgssairportland07) (9)
    CreateObject(8172,2112.42382812,-3251.20703125,244.88885498,0.00000000,90.00000000,0.00000000); //object(vgssairportland07) (10)
    CreateObject(8172,2112.06152344,-3090.80078125,245.38885498,0.00000000,90.00000000,0.00000000); //object(vgssairportland07) (11)
    CreateObject(8172,2192.90356445,-3330.00708008,205.88885498,0.00000000,90.00000000,89.99850464); //object(vgssairportland07) (12)
    CreateObject(8172,2192.90332031,-3330.00683594,244.38885498,0.00000000,90.00000000,89.99450684); //object(vgssairportland07) (13)
    CreateObject(8172,2232.02709961,-3250.16552734,205.88885498,0.00000000,90.00000000,179.99346924); //object(vgssairportland07) (14)
    CreateObject(8172,2232.02636719,-3250.16503906,244.13885498,0.00000000,90.00000000,179.98901367); //object(vgssairportland07) (15)
    CreateObject(8172,2231.64941406,-3089.14160156,205.88885498,0.00000000,90.00000000,179.98352051); //object(vgssairportland07) (16)
    CreateObject(8172,2231.64941406,-3089.14160156,243.38885498,0.00000000,90.00000000,179.98901367); //object(vgssairportland07) (17)
    CreateObject(8172,2170.49829102,-3010.66845703,205.88885498,0.00000000,90.00000000,269.98696899); //object(vgssairportland07) (19)
    CreateObject(8172,2170.49804688,-3010.66796875,244.88885498,0.00000000,90.00000000,269.98352051); //object(vgssairportland07) (20)
    CreateObject(8172,2152.52148438,-3315.61425781,253.88885498,0.04351807,178.00000000,89.95239258); //object(vgssairportland07) (21)
    CreateObject(8172,2151.68554688,-3277.81250000,255.38885498,0.03845215,177.99499512,89.95056152); //object(vgssairportland07) (22)
    CreateObject(8172,2150.27612305,-3237.83203125,255.38885498,0.03845215,177.99499512,89.95056152); //object(vgssairportland07) (23)
    CreateObject(8172,2157.61645508,-3198.25146484,256.38885498,0.03845215,177.99499512,89.95056152); //object(vgssairportland07) (24)
    CreateObject(8172,2154.80249023,-3159.09399414,257.63885498,0.03845215,177.99499512,89.95056152); //object(vgssairportland07) (25)
    CreateObject(8172,2153.11132812,-3122.39038086,258.88885498,0.03845215,177.99499512,89.95056152); //object(vgssairportland07) (26)
    CreateObject(8172,2149.56982422,-3087.16040039,258.88885498,0.03845215,177.99499512,89.95056152); //object(vgssairportland07) (27)
    CreateObject(8172,2150.06445312,-3050.36914062,258.88885498,0.03845215,177.99499512,89.95056152); //object(vgssairportland07) (28)
    CreateObject(8172,2150.11254883,-3027.49267578,258.88885498,0.03845215,177.99499512,89.95056152); //object(vgssairportland07) (29)
    CreateObject(655,2127.89160156,-3279.87109375,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree06) (1)
    CreateObject(655,2131.89794922,-3284.02709961,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree06) (2)
    CreateObject(655,2119.61279297,-3280.61474609,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree06) (3)
    CreateObject(655,2130.60156250,-3270.29150391,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree06) (4)
    CreateObject(655,2139.35937500,-3272.11132812,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree06) (5)
    CreateObject(655,2136.24658203,-3257.41748047,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree06) (6)
    CreateObject(693,2203.40429688,-3176.25195312,195.18984985,0.00000000,0.00000000,0.00000000); //object(sm_redwood_) (1)
    CreateObject(693,2137.80126953,-3207.16064453,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_redwood_) (2)
    CreateObject(693,2119.22070312,-3221.71459961,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_redwood_) (3)
    CreateObject(693,2144.69335938,-3188.21166992,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_redwood_) (4)
    CreateObject(731,2229.57080078,-3255.52612305,189.62322998,0.00000000,0.00000000,0.00000000); //object(tree_hipoly09) (1)
    CreateObject(731,2140.20898438,-3220.52221680,189.62322998,0.00000000,0.00000000,0.00000000); //object(tree_hipoly09) (2)
    CreateObject(18259,2201.80004883,-3321.69995117,191.00000000,0.00000000,0.00000000,265.99548340); //object(logcabinn01) (1)
    CreateObject(1271,2193.89990234,-3318.00000000,191.39999390,0.00000000,0.00000000,0.00000000); //object(gunbox) (1)
    CreateObject(1271,2194.89990234,-3317.19995117,191.39999390,0.00000000,0.00000000,0.00000000); //object(gunbox) (2)
    CreateObject(1271,2195.50000000,-3318.39990234,191.39999390,0.00000000,0.00000000,0.00000000); //object(gunbox) (3)
    CreateObject(1232,2155.81201172,-3277.14721680,192.25987244,0.00000000,0.00000000,0.00000000); //object(streetlamp1) (1)
    CreateObject(1232,2156.03710938,-3258.57153320,192.25987244,0.00000000,0.00000000,0.00000000); //object(streetlamp1) (2)
    CreateObject(1232,2155.64501953,-3239.54956055,192.25987244,0.00000000,0.00000000,0.00000000); //object(streetlamp1) (3)
    CreateObject(1232,2199.69116211,-3257.48461914,192.25987244,0.00000000,0.00000000,0.00000000); //object(streetlamp1) (4)
    CreateObject(1232,2200.38647461,-3279.50000000,192.26768494,0.00000000,0.00000000,0.00000000); //object(streetlamp1) (5)
    CreateObject(1232,2200.64453125,-3238.71582031,192.25987244,0.00000000,0.00000000,0.00000000); //object(streetlamp1) (6)
    CreateObject(658,2136.14721680,-3227.89843750,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree04) (1)
    CreateObject(658,2132.04541016,-3238.78637695,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree04) (2)
    CreateObject(658,2154.72998047,-3232.89208984,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree04) (3)
    CreateObject(658,2137.29394531,-3251.23339844,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree04) (4)
    CreateObject(658,2116.69604492,-3213.15551758,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree04) (5)
    CreateObject(693,2121.45581055,-3243.99633789,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_redwood_) (5)
    CreateObject(1337,2186.61669922,-3192.73095703,243.32922363,0.00000000,0.00000000,0.00000000); //object(binnt07_la) (1)
    CreateObject(987,140.29835510,152.96981812,452.09802246,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (1)
    CreateObject(987,156.38903809,146.63502502,472.82507324,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (2)
    CreateObject(18267,2154.00000000,-3015.89990234,190.80000305,0.00000000,0.00000000,271.99951172); //object(logcabinn) (1)
    CreateObject(842,2214.72192383,-3184.25390625,189.75968933,0.00000000,0.00000000,0.00000000); //object(dead_tree_14) (1)
    CreateObject(661,2216.88232422,-3181.08789062,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree07) (1)
    CreateObject(8172,2234.29882812,-3251.66479492,189.63885498,0.00000000,0.00000000,0.00000000); //object(vgssairportland07) (4)
    CreateObject(661,2212.43872070,-3196.85229492,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree07) (2)
    CreateObject(672,2205.66113281,-3189.51904297,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree5) (1)
    CreateObject(672,2218.58325195,-3185.77929688,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_veg_tree5) (2)
    CreateObject(8172,2242.28198242,-3074.23364258,205.88885498,0.00000000,90.00000000,179.98352051); //object(vgssairportland07) (16)
    CreateObject(693,2203.40429688,-3176.25195312,195.18984985,0.00000000,0.00000000,0.00000000); //object(sm_redwood_) (1)
    CreateObject(693,2210.13989258,-3217.58203125,195.18984985,0.00000000,0.00000000,0.00000000); //object(sm_redwood_) (1)
    CreateObject(693,2198.41137695,-3224.13378906,195.18984985,0.00000000,0.00000000,0.00000000); //object(sm_redwood_) (1)
    CreateObject(3475,2115.71240234,-3293.26513672,191.99940491,0.00000000,0.00000000,269.99996948); //object(vgsn_fncelec_pst) (1)
    CreateObject(3475,2121.50659180,-3293.02294922,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (2)
    CreateObject(3475,2127.50585938,-3293.00488281,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (3)
    CreateObject(3475,2133.50659180,-3293.23730469,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (4)
    CreateObject(3475,2139.25976562,-3293.33593750,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (5)
    CreateObject(3475,2150.24902344,-3293.72265625,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (6)
    CreateObject(3475,2156.24316406,-3293.93359375,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (7)
    CreateObject(3475,2162.29736328,-3294.11914062,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (8)
    CreateObject(3475,2168.31103516,-3294.44921875,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (9)
    CreateObject(3475,2179.63012695,-3292.94458008,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (10)
    CreateObject(3475,2185.67675781,-3292.98608398,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (11)
    CreateObject(3475,2191.42114258,-3293.18750000,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (12)
    CreateObject(3475,2196.81494141,-3293.26367188,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (13)
    CreateObject(3475,2202.74267578,-3293.24023438,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (14)
    CreateObject(3475,2208.66137695,-3293.30249023,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (15)
    CreateObject(3475,2214.54736328,-3293.37255859,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (16)
    CreateObject(3475,2220.39062500,-3292.89111328,191.99940491,0.00000000,0.00000000,269.99450684); //object(vgsn_fncelec_pst) (17)
    CreateObject(655,2214.33032227,-3323.47851562,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree06) (7)
    CreateObject(655,2225.24267578,-3320.80419922,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree06) (8)
    CreateObject(655,2218.37133789,-3315.34057617,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree06) (9)
    CreateObject(655,2228.65966797,-3305.86621094,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree06) (10)
    CreateObject(660,2212.22753906,-3311.60815430,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree03) (1)
    CreateObject(660,2221.46142578,-3307.38769531,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree03) (2)
    CreateObject(660,2208.82275391,-3310.79394531,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree03) (3)
    CreateObject(670,2225.12890625,-3300.80810547,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_firtallded) (1)
    CreateObject(670,2216.42089844,-3313.33691406,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_firtallded) (2)
    CreateObject(688,2121.90625000,-3321.43481445,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_scabg) (1)
    CreateObject(688,2121.90625000,-3321.43481445,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_scabg) (2)
    CreateObject(659,2117.81323242,-3311.50512695,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree01) (1)
    CreateObject(659,2117.79296875,-3316.50488281,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree01) (2)
    CreateObject(659,2124.30957031,-3312.28027344,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree01) (3)
    CreateObject(659,2117.35546875,-3300.50292969,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree01) (4)
    CreateObject(659,2124.87207031,-3296.28222656,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree01) (5)
    CreateObject(659,2124.83593750,-3305.53222656,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree01) (6)
    CreateObject(659,2124.83593750,-3305.53222656,189.62322998,0.00000000,0.00000000,0.00000000); //object(pinetree01) (7)
    CreateObject(689,2129.04833984,-3301.96801758,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (1)
    CreateObject(689,2142.01489258,-3316.05932617,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (2)
    CreateObject(689,2176.60498047,-3316.57519531,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (3)
    CreateObject(689,2202.00390625,-3257.33032227,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (4)
    CreateObject(689,2138.70458984,-3021.32934570,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (5)
    CreateObject(8172,2130.80151367,-3092.55078125,189.63885498,0.00000000,0.00000000,0.00000000); //object(vgssairportland07) (2)
    CreateObject(689,2125.21728516,-3021.80371094,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (6)
    CreateObject(689,2123.11108398,-3040.13256836,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (7)
    CreateObject(689,2135.75537109,-3038.87548828,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (8)
    CreateObject(689,2129.49121094,-3055.62890625,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (9)
    CreateObject(689,2124.64990234,-3073.00659180,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (10)
    CreateObject(689,2124.46044922,-3089.63623047,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (11)
    CreateObject(689,2122.79833984,-3103.75854492,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (12)
    CreateObject(689,2138.03344727,-3100.08325195,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (13)
    CreateObject(689,2138.03344727,-3100.08325195,189.62322998,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (14)
    CreateObject(689,2125.89990234,-3119.60009766,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (9)
    CreateObject(689,2140.60009766,-3123.10009766,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (9)
    CreateObject(689,2136.10009766,-3137.39990234,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (9)
    CreateObject(689,2125.39990234,-3153.30004883,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (9)
    CreateObject(689,2142.69995117,-3170.69995117,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (9)
    CreateObject(689,2128.19995117,-3193.69995117,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse1) (9)
    CreateObject(658,2206.00000000,-3048.00000000,189.60000610,0.00000000,0.00000000,0.00000000); //object(pinetree04) (6)
    CreateObject(658,2216.89990234,-3051.19995117,189.60000610,0.00000000,0.00000000,0.00000000); //object(pinetree04) (7)
    CreateObject(658,2210.00000000,-3067.89990234,189.60000610,0.00000000,0.00000000,0.00000000); //object(pinetree04) (8)
    CreateObject(658,2204.30004883,-3058.50000000,189.60000610,0.00000000,0.00000000,0.00000000); //object(pinetree04) (9)
    CreateObject(661,2201.30004883,-3039.19995117,189.60000610,0.00000000,0.00000000,0.00000000); //object(pinetree07) (3)
    CreateObject(661,2221.69995117,-3026.50000000,189.60000610,0.00000000,0.00000000,0.00000000); //object(pinetree07) (4)
    CreateObject(661,2217.00000000,-3049.50000000,189.60000610,0.00000000,0.00000000,0.00000000); //object(pinetree07) (5)
    CreateObject(670,2220.80004883,-3059.19995117,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_firtallded) (3)
    CreateObject(670,2215.50000000,-3083.00000000,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_firtallded) (4)
    CreateObject(683,2223.00000000,-3095.19995117,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_group) (1)
    CreateObject(683,2220.30004883,-3083.89990234,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_group) (2)
    CreateObject(683,2204.80004883,-3078.39990234,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_group) (3)
    CreateObject(683,2205.50000000,-3095.50000000,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_group) (4)
    CreateObject(683,2201.50000000,-3109.39990234,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_group) (5)
    CreateObject(683,2221.89990234,-3105.89990234,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_group) (6)
    CreateObject(683,2208.10009766,-3119.50000000,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_group) (7)
    CreateObject(690,2217.30004883,-3133.19995117,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse2) (1)
    CreateObject(690,2203.89990234,-3148.50000000,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse2) (2)
    CreateObject(690,2222.10009766,-3150.00000000,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse2) (3)
    CreateObject(690,2202.69995117,-3165.39990234,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse2) (4)
    CreateObject(690,2223.30004883,-3164.80004883,189.60000610,0.00000000,0.00000000,0.00000000); //object(sm_fir_copse2) (5)
    CreateObject(1295,2155.30004883,-3064.69995117,194.89999390,0.00000000,0.00000000,0.00000000); //object(doublestreetlght1) (1)
    CreateObject(1295,2155.69995117,-3077.39990234,194.89999390,0.00000000,0.00000000,0.00000000); //object(doublestreetlght1) (2)
    CreateObject(1295,2156.00000000,-3086.89990234,194.89999390,0.00000000,0.00000000,0.00000000); //object(doublestreetlght1) (3)
    CreateObject(1295,2156.39990234,-3101.39990234,194.89999390,0.00000000,0.00000000,0.00000000); //object(doublestreetlght1) (4)
    CreateObject(1295,2190.50000000,-3050.89990234,194.89999390,0.00000000,0.00000000,0.00000000); //object(doublestreetlght1) (5)
    CreateObject(1295,2191.30004883,-3065.89990234,194.89999390,0.00000000,0.00000000,0.00000000); //object(doublestreetlght1) (6)
    CreateObject(1295,2192.10009766,-3079.89990234,194.89999390,0.00000000,0.00000000,0.00000000); //object(doublestreetlght1) (7)
    CreateObject(1295,2192.09960938,-3079.89941406,194.89999390,0.00000000,0.00000000,0.00000000); //object(doublestreetlght1) (8)
    CreateObject(1295,2192.69995117,-3091.60009766,194.89999390,0.00000000,0.00000000,0.00000000); //object(doublestreetlght1) (9)
    CreateObject(1295,2193.39990234,-3104.60009766,194.89999390,0.00000000,0.00000000,0.00000000); //object(doublestreetlght1) (10)
    CreateObject(1295,2203.80004883,-3098.50000000,194.89999390,0.00000000,0.00000000,0.00000000); //object(doublestreetlght1) (11)
    CreateObject(3475,2115.30004883,-3052.39990234,192.00000000,0.00000000,0.00000000,82.00000000); //object(vgsn_fncelec_pst) (18)
    CreateObject(3475,2121.30004883,-3053.10009766,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (19)
    CreateObject(3475,2127.19995117,-3053.89990234,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (20)
    CreateObject(3475,2133.39990234,-3054.80004883,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (21)
    CreateObject(3475,2139.30004883,-3055.60009766,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (22)
    CreateObject(3475,2145.19995117,-3056.39990234,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (23)
    CreateObject(3475,2155.30004883,-3057.80004883,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (24)
    CreateObject(3475,2161.00000000,-3058.60009766,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (25)
    CreateObject(3475,2166.89990234,-3059.39990234,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (26)
    CreateObject(3475,2178.30004883,-3061.00000000,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (27)
    CreateObject(3475,2184.00000000,-3061.80004883,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (28)
    CreateObject(3475,2189.89990234,-3062.60009766,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (29)
    CreateObject(3475,2199.60009766,-3063.89990234,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (30)
    CreateObject(3475,2205.30004883,-3064.69995117,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (31)
    CreateObject(3475,2211.00000000,-3065.50000000,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (32)
    CreateObject(3475,2221.10009766,-3066.89990234,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (33)
    CreateObject(3475,2227.00000000,-3067.69995117,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (34)
    CreateObject(3475,2233.19995117,-3068.60009766,192.00000000,0.00000000,0.00000000,81.99645996); //object(vgsn_fncelec_pst) (35)
    CreateObject(1424,2169.10009766,-3065.69995117,190.10000610,0.00000000,0.00000000,92.00000000); //object(dyn_roadbarrier_2) (1)
    CreateObject(1424,2169.10009766,-3068.50000000,190.10000610,0.00000000,0.00000000,91.99951172); //object(dyn_roadbarrier_2) (2)
    CreateObject(1424,2169.10009766,-3071.00000000,190.10000610,0.00000000,0.00000000,91.99951172); //object(dyn_roadbarrier_2) (3)
    CreateObject(1424,2176.10009766,-3065.89990234,190.10000610,0.00000000,0.00000000,91.99951172); //object(dyn_roadbarrier_2) (4)
    CreateObject(1424,2176.39990234,-3068.69995117,190.10000610,0.00000000,0.00000000,91.99951172); //object(dyn_roadbarrier_2) (5)
    CreateObject(1424,2176.19995117,-3071.39990234,190.10000610,0.00000000,0.00000000,91.99951172); //object(dyn_roadbarrier_2) (6)
    CreateObject(3014,2162.10009766,-3019.60009766,191.10000610,0.00000000,0.00000000,0.00000000); //object(cr_guncrate) (1)
    CreateObject(3014,2161.60009766,-3018.39990234,191.10000610,0.00000000,0.00000000,0.00000000); //object(cr_guncrate) (2)
    CreateObject(3014,2160.00000000,-3019.50000000,191.10000610,0.00000000,0.00000000,0.00000000); //object(cr_guncrate) (3)
    CreateObject(3014,2162.30004883,-3017.50000000,191.10000610,0.00000000,0.00000000,0.00000000); //object(cr_guncrate) (4)
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}
public OnPlayerConnect(playerid)
{
    AtParty[playerid] = false;
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/event", true) == 0)
    {
        if(IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_RED, "You're not authorized to use this Command");
        {
            GetPlayerPos(playerid, pData[X], pData[Y], pData[Z]); //Error here
            GetPlayerFacingAngle(playerid, pData[A]); //Error here
            SendClientMessageToAll(COLOR_GREEN, "A Event has been started. Use /join to join the event.");
            PartyStarted = true;
            return 1;
        }
    }

    if(strcmp(cmdtext, "/join", true) == 0)
    {
        if(PartyStarted == false) return SendClientMessage(playerid, COLOR_RED, "No one has started a event yet.");
        if(AtParty[playerid] == true) return SendClientMessage(playerid, COLOR_RED, "You're already in the event, type /leave to leave.");
        SetPlayerPos(playerid, 2169.0952,-3170.2466,190);
        SetPlayerFacingAngle(playerid, 344.3667);
        AtParty[playerid] = true;
        SendClientMessage(playerid, COLOR_GREEN, "Welcome to the Event, if you wish to leave use /leave.");
        return 1;
    }

    if(strcmp(cmdtext, "/leave", true) == 0)
    {
        if(AtParty[playerid] == false) return SendClientMessage(playerid, COLOR_RED, "You're not at the Event.");
        SpawnPlayer(playerid);
        AtParty[playerid] = false;
        return 1;
    }

    if(strcmp(cmdtext, "/cancel", true) == 0)
    {
        if(IsPlayerAdmin(playerid))
        {
            if(PartyStarted == false) return SendClientMessage(playerid, COLOR_RED, "There is no Event to cancel.");
            pData[X] = 0.00, pData[Y] = 0.00, pData[Z] = 0.00, pData[A] = 0.00; // Warning and Error here
            for(new i = 0; i < MAX_PLAYERS; i++)
            {
                if(AtParty[i] == true)
                {
                    AtParty[i] = false;
                    SpawnPlayer(i);
                }
            }
            PartyStarted = false;
            return 1;
        }
    }
    return 0;
}

COMMAND:minigame(playerid, cmdtext)
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000FF, "You're not authorized to use this Command");
    SetPlayerPos(playerid, 2169.0952,-3170.2466,190);
    return 1;
}

COMMAND:getweapons(playerid, cmdtext)
{
    if (!IsPlayerInRangeOfPoint(playerid, 7.0, 2196.2363,-3319.5674,192) && !IsPlayerInRangeOfPoint(playerid, 7.0, 2160.5581,-3017.5974,191))
    {
        SendClientMessage(playerid, 0xFF0000FF, "You're not near the weapon crates"); return 1;
    }
    ShowPlayerDialog(playerid, 32, DIALOG_STYLE_LIST, "Pick a weapon:", "Deagle\nCombat Shotgun\nAK47\nTearGas\nChainsaw\nSniper\nMinigun\nFlamethrower", "Pick", "Close");
    return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 32)
    {
        if(!response) return 1; // if he clicked the other button, stop the code
        switch(listitem) // Switch trough all list items
        {
            case 0: GivePlayerWeapon(playerid, 24, 100);
            case 1: GivePlayerWeapon(playerid, 27, 100);
            case 2: GivePlayerWeapon(playerid, 30, 200);
            case 3: GivePlayerWeapon(playerid, 17, 10);
            case 4: GivePlayerWeapon(playerid, 9, 1);
            case 5: GivePlayerWeapon(playerid, 34, 100);
            case 6: GivePlayerWeapon(playerid, 38, 500);
            case 7: GivePlayerWeapon(playerid, 37, 500);
        }
    }
    return 1;
}
Thank you. I'll try to explain the errors better next time.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)