Error public OnFilterScriptInit()
#1

Код HTML:
#include <a_samp>
#include <zcmd>

new LSPDGate;
new GD

public OnFilterScriptInit()
{
	//Objects
	CreateObject(1569,246.8999900,72.5000000,1002.5999800,0.0000000,0.0000000,0.0000000); //object(adam_v_door) (1)
CreateObject(983,1544.6999500,-1620.8000500,13.2000000,0.0000000,0.0000000,0.0000000); //object(fenceshit3) (1)
CreateObject(983,1543.5000000,-1635.9000200,13.3000000,0.0000000,0.0000000,0.0000000); //object(fenceshit3) (2)
CreateObject(1495,1582.5999800,-1637.9000200,12.4000000,0.0000000,0.0000000,0.0000000); //object(gen_doorext01) (1)
CreateObject(1408,2502.5000000,-1742.3000500,13.1000000,0.0000000,0.0000000,180.2500000); //object(dyn_f_wood_2) (1)
CreateObject(1408,2489.5000000,-1742.3000500,13.1000000,0.0000000,0.0000000,180.2470000); //object(dyn_f_wood_2) (2)
CreateObject(1408,2486.6999500,-1745.0000000,13.1000000,0.0000000,0.0000000,268.7470000); //object(dyn_f_wood_2) (3)
CreateObject(1408,2486.6001000,-1750.5999800,13.1000000,0.0000000,0.0000000,268.7420000); //object(dyn_f_wood_2) (4)
CreateObject(1408,2486.5000000,-1755.4000200,13.1000000,0.0000000,0.0000000,268.7420000); //object(dyn_f_wood_2) (5)
CreateObject(2311,2491.1001000,-1747.1999500,12.5000000,0.0000000,0.0000000,269.7500000); //object(cj_tv_table2) (1)
CreateObject(2311,2490.8000500,-1753.1999500,12.5000000,0.0000000,0.0000000,269.7470000); //object(cj_tv_table2) (3)
CreateObject(1709,2490.1001000,-1751.3000500,12.5000000,0.0000000,0.0000000,90.2500000); //object(kb_couch08) (1)
CreateObject(1710,2489.0000000,-1755.4000200,12.5000000,0.0000000,0.0000000,89.0000000); //object(kb_couch07) (1)
CreateObject(2219,2491.1001000,-1748.5999800,13.1000000,333.3600000,22.4970000,336.5200000); //object(pizzamed) (1)
CreateObject(2222,2491.1001000,-1747.4000200,13.1000000,0.0000000,0.0000000,0.0000000); //object(rustyhigh) (1)
CreateObject(2814,2491.1001000,-1748.6999500,12.6000000,0.0000000,0.0000000,0.0000000); //object(gb_takeaway01) (1)
CreateObject(2837,2490.8000500,-1753.1999500,13.0000000,0.0000000,0.0000000,0.0000000); //object(gb_takeaway02) (1)
CreateObject(2838,2490.8000500,-1754.5999800,13.0000000,0.0000000,0.0000000,0.0000000); //object(gb_takeaway03) (1)
CreateObject(955,2493.5000000,-1759.8000500,12.9000000,0.0000000,0.0000000,178.0000000); //object(cj_ext_sprunk) (1)
CreateObject(983,2482.6001000,-1722.0000000,13.2000000,0.0000000,0.0000000,88.0000000); //object(fenceshit3) (3)
CreateObject(983,2482.6001000,-1722.0000000,13.2000000,0.0000000,0.0000000,88.0000000); //object(fenceshit3) (3)
CreateObject(1569,246.8999900,72.5000000,1002.5999800,0.0000000,0.0000000,0.0000000);
CreateObject(983,2255.5000000,-2241.1999500,16.9000000,0.0000000,0.0000000,315.7500000); //object(fenceshit3) (1)
CreateObject(982,2248.6999500,-2229.8000500,16.9000000,0.0000000,0.0000000,45.0000000); //object(fenceshit) (1)
CreateObject(982,2230.6001000,-2211.6999500,16.9000000,0.0000000,0.0000000,44.9950000); //object(fenceshit) (2)
CreateObject(982,2212.5000000,-2193.6001000,16.9000000,0.0000000,0.0000000,44.9950000); //object(fenceshit) (3)
CreateObject(982,2207.6999500,-2188.8000500,16.9000000,0.0000000,0.0000000,44.9950000); //object(fenceshit) (4)
CreateObject(982,2189.6001000,-2188.8000500,16.9000000,0.0000000,0.0000000,134.9950000); //object(fenceshit) (5)
CreateObject(982,2171.5000000,-2206.8999000,16.9000000,0.0000000,0.0000000,134.9890000); //object(fenceshit) (6)
CreateObject(982,2153.3999000,-2225.0000000,16.9000000,0.0000000,0.0000000,134.9890000); //object(fenceshit) (7)
CreateObject(982,2135.3000500,-2243.1001000,16.9000000,0.0000000,0.0000000,134.9890000); //object(fenceshit) (8)
CreateObject(982,2124.5000000,-2253.8000500,16.9000000,0.0000000,0.0000000,134.9890000); //object(fenceshit) (9)
CreateObject(983,2114.3000500,-2265.8000500,16.9000000,0.0000000,0.0000000,337.5000000); //object(fenceshit3) (2)
CreateObject(983,2112.1001000,-2271.1999500,16.9000000,0.0000000,0.0000000,337.4950000); //object(fenceshit3) (3)
CreateObject(984,2110.8999000,-2286.6999500,16.8000000,0.0000000,0.0000000,0.0000000); //object(fenceshit2) (2)
CreateObject(984,2110.8999000,-2299.5000000,16.8000000,0.0000000,0.0000000,0.0000000); //object(fenceshit2) (3)
CreateObject(984,2110.8999000,-2305.5000000,16.8000000,0.0000000,0.0000000,0.0000000); //object(fenceshit2) (4)
CreateObject(984,2117.1999500,-2313.0000000,16.8000000,0.0000000,0.0000000,79.5000000); //object(fenceshit2) (5)
CreateObject(984,2124.5000000,-2314.3000500,16.8000000,0.0000000,0.0000000,79.4970000); //object(fenceshit2) (6)
CreateObject(984,2136.5000000,-2318.1001000,16.8000000,0.0000000,0.0000000,63.9970000); //object(fenceshit2) (7)
CreateObject(984,2143.6999500,-2321.6001000,16.8000000,0.0000000,0.0000000,63.9950000); //object(fenceshit2) (8)
CreateObject(984,2154.1999500,-2328.1999500,16.8000000,0.0000000,0.0000000,53.0000000); //object(fenceshit2) (9)
CreateObject(984,2164.1999500,-2336.1001000,16.8000000,0.0000000,0.0000000,50.9980000); //object(fenceshit2) (10)
CreateObject(984,2174.1999500,-2344.1999500,16.8000000,0.0000000,0.0000000,50.9930000); //object(fenceshit2) (11)
CreateObject(984,2180.8999000,-2349.5000000,16.8000000,0.0000000,0.0000000,51.9930000); //object(fenceshit2) (12)
CreateObject(982,2195.1001000,-2344.5000000,16.7000000,0.0000000,0.0000000,314.7500000); //object(fenceshit) (11)
CreateObject(982,2213.1001000,-2326.3999000,16.7000000,0.0000000,0.0000000,314.7470000); //object(fenceshit) (12)
CreateObject(982,2231.3000500,-2308.3000500,16.7000000,0.0000000,0.0000000,315.2470000); //object(fenceshit) (13)
CreateObject(3014,2147.3000500,-2264.6001000,13.7000000,0.0000000,0.0000000,0.0000000); //object(cr_guncrate) (1)
CreateObject(3014,2148.3999000,-2265.6001000,13.7000000,0.0000000,0.0000000,0.0000000); //object(cr_guncrate) (2)
CreateObject(3014,2149.5000000,-2266.6001000,13.7000000,0.0000000,0.0000000,0.0000000); //object(cr_guncrate) (3)
CreateObject(3014,2150.3999000,-2267.5000000,13.7000000,0.0000000,0.0000000,0.0000000); //object(cr_guncrate) (4)
CreateObject(3014,2151.5000000,-2268.6001000,13.7000000,0.0000000,0.0000000,0.0000000); //object(cr_guncrate) (5)
CreateObject(349,2151.5000000,-2268.6999500,14.0000000,0.0000000,0.0000000,0.0000000); //object(3)
CreateObject(352,2150.3000500,-2267.5000000,14.0000000,5.8680000,347.9360000,1.2520000); //object(4)
CreateObject(355,2149.5000000,-2266.6001000,14.0000000,355.0650000,350.7150000,359.1940000); //object(5)
CreateObject(372,2148.3999000,-2265.6001000,14.0000000,14.0000000,0.0000000,0.0000000); //object(6)
CreateObject(373,2147.5000000,-2264.8000500,14.3000000,336.8400000,298.3660000,25.9290000); //object(7)
CreateObject(3626,2197.3999000,-2240.6001000,13.8000000,0.0000000,0.0000000,134.9950000); //object(dckwrkhut) (1)
CreateObject(3084,2264.1001000,-2254.6001000,14.0000000,0.0000000,0.0000000,314.5000000); //object(trdcsgrgdoor_lvs) (1)
CreateObject(1433,2200.3999000,-2242.6001000,12.8000000,0.0000000,0.0000000,43.5000000); //object(dyn_table_1) (1)
CreateObject(2867,2200.5000000,-2242.5000000,13.3000000,0.0000000,0.0000000,0.0000000); //object(gb_foodwrap05) (1)
CreateObject(1712,2194.6001000,-2240.1001000,12.6000000,0.0000000,0.0000000,130.7500000); //object(kb_couch05) (1)
CreateObject(1518,2195.3999000,-2236.8999000,14.7000000,21.2500000,359.7320000,346.8470000); //object(dyn_tv_2) (1)
CreateObject(1687,2193.3999000,-2236.6999500,13.2000000,0.0000000,0.0000000,224.2450000); //object(gen_roofbit1) (1)
CreateObject(1569,246.8999900,72.5000000,1002.5999800,0.0000000,0.0000000,0.0000000);
	//Gang Zones
	//Gates
    LSPDGate = CreateObject(3055,1588.5000000,-1637.9000200,14.6000000,0.0000000,0.0000000,0.0000000);
    //hq = CreateObject(1569,245.3999900,72.5000000,1002.5999800,0.0000000,0.0000000,0.0000000);
    GD = CreateObject(7657,2233.8999000,-2215.3000500,14.3000000,0.0000000,0.0000000,134.7500000);
    //cell = CreateObject(2930,266.3999900,83.9000000,1002.5999800,0.0000000,0.0000000,0.0000000);
    //GD2 = CreateObject(8948,2178.3000500,-2255.1001000,15.5000000,0.0000000,0.0000000,314.0000000);
    return 1;
}

CMD:openpdgate(playerid,params[])
{
    MoveObject(LSPDGate,1588.5000000,-1637.9000200,19.4000000,2.0000000);
    return 1;
}

CMD:closepdgate(playerid,params[])
{
    MoveObject(LSPDGate,1588.5000000,-1637.9000200,14.6000000,2.0000000);
    return 1;
}

CMD:opengd(playerid,params[])
{
    MoveObject(GD,2246.1001000,-2227.3999000,14.3000000,2.0000000);
    return 1;
}

CMD:closegd(playerid,params[])
{
    MoveObject(GD,2233.8999000,-2215.3000500,14.3000000,2.0000000);
    return 1;
}
I hope you can help me
Reply
#2

What is exactly your problem? We can't help you if you don't provide error messages!

EDIT: By the way, open a new pawn document and take a look, that's the structure of a script, you're missing things as main {}.
Reply
#3

By looking at the script, I see that you forgot an ; at this line:

pawn Код:
new GD
Change it to

pawn Код:
new GD;
Next time remember to add a ;
Reply
#4

Thanks. I have not see it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)