23.01.2011, 15:05
Hello guys i am fricken tired of try and try making moving objects, is so simple and so hard!
I get this errors:
In this script:
Please help me...
I get this errors:
Код:
C:\Users\Ricardo\Desktop\lspd.pwn(105) : error 055: start of function body without function header C:\Users\Ricardo\Desktop\lspd.pwn(106) : error 010: invalid function or declaration C:\Users\Ricardo\Desktop\lspd.pwn(109) : error 010: invalid function or declaration C:\Users\Ricardo\Desktop\lspd.pwn(100) : warning 204: symbol is assigned a value that is never used: "Gate" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors.
pawn Код:
#define FILTERSCRIPT
#include <a_samp>
#if defined FILTERSCRIPT
#define COLOR_GRAD1 0xB4B5B7FF
new Gate;
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" LSPD Map by: Ricardo_Manuel");
print("--------------------------------------\n");
CreateObject(3055,1588.51196289,-1637.83374023,14.63052750,0.00000000,0.00000000,0.00000000); //object(kmb_shutter) (1)
CreateObject(1523,1582.62097168,-1637.81762695,12.50221252,0.00000000,0.00000000,0.00000000); //object(gen_doorext10) (1)
CreateObject(3808,1584.46057129,-1637.81762695,15.81453991,0.00000000,0.00000000,90.00000000); //object(sfx_alarms04) (1)
CreateObject(3785,1588.32629395,-1637.82604980,17.80636215,0.00000000,0.00000000,74.00000000); //object(bulkheadlight) (1)
CreateObject(3089,1577.28381348,-1637.34497070,13.95115376,0.00000000,0.00000000,90.00000000); //object(ab_casdorlok) (1)
CreateObject(2942,1576.82543945,-1633.72692871,13.20013523,0.00000000,0.00000000,270.00000000); //object(kmb_atm1) (1)
CreateObject(1583,1606.47924805,-1636.23632812,12.71875000,0.00000000,0.00000000,0.00000000); //object(tar_gun2) (3)
CreateObject(1583,1603.40100098,-1636.26000977,12.71875000,0.00000000,0.00000000,0.00000000); //object(tar_gun2) (4)
CreateObject(1583,1600.34448242,-1636.31762695,12.71875000,0.00000000,0.00000000,0.00000000); //object(tar_gun2) (5)
CreateObject(9131,1607.14392090,-1637.36022949,13.84766579,0.00000000,0.00000000,0.00000000); //object(shbbyhswall13_lvs) (1)
CreateObject(9131,1606.38269043,-1637.36853027,13.84766579,0.00000000,0.00000000,0.00000000); //object(shbbyhswall13_lvs) (2)
CreateObject(9131,1605.64794922,-1637.37011719,13.84766579,0.00000000,0.00000000,0.00000000); //object(shbbyhswall13_lvs) (3)
CreateObject(9131,1604.88317871,-1637.37438965,13.84766579,0.00000000,0.00000000,0.00000000); //object(shbbyhswall13_lvs) (4)
CreateObject(9131,1604.15356445,-1637.45581055,13.84766579,0.00000000,0.00000000,0.00000000); //object(shbbyhswall13_lvs) (5)
CreateObject(9131,1603.36791992,-1637.48791504,13.84766579,0.00000000,0.00000000,0.00000000); //object(shbbyhswall13_lvs) (6)
CreateObject(9131,1602.59936523,-1637.44787598,13.84766579,0.00000000,0.00000000,0.00000000); //object(shbbyhswall13_lvs) (7)
CreateObject(9131,1601.83813477,-1637.39099121,13.84766579,0.00000000,0.00000000,0.00000000); //object(shbbyhswall13_lvs) (8)
CreateObject(9131,1601.09216309,-1637.41027832,13.84766579,0.00000000,0.00000000,0.00000000); //object(shbbyhswall13_lvs) (9)
CreateObject(9131,1600.34570312,-1637.43066406,13.84766579,0.00000000,0.00000000,0.00000000); //object(shbbyhswall13_lvs) (10)
CreateObject(9131,1599.67517090,-1637.46057129,13.84766579,0.00000000,0.00000000,0.00000000); //object(shbbyhswall13_lvs) (11)
CreateObject(9131,1598.90576172,-1637.44958496,13.84766579,0.00000000,0.00000000,0.00000000); //object(shbbyhswall13_lvs) (12)
CreateObject(9131,1607.14196777,-1637.37243652,16.12066078,0.00000000,0.00000000,0.00000000); //object(shbbyhswall13_lvs) (13)
CreateObject(9131,1606.40515137,-1637.39062500,16.12066078,0.00000000,0.00000000,0.00000000); //object(shbbyhswall13_lvs) (14)
CreateObject(9131,1605.63354492,-1637.38989258,16.12066078,0.00000000,0.00000000,0.00000000); //object(shbbyhswall13_lvs) (15)
CreateObject(9131,1604.89196777,-1637.41113281,16.12066078,0.00000000,0.00000000,0.00000000); //object(shbbyhswall13_lvs) (16)
CreateObject(9131,1604.12060547,-1637.46093750,16.12066078,0.00000000,0.00000000,0.00000000); //object(shbbyhswall13_lvs) (17)
CreateObject(9131,1603.38195801,-1637.36730957,16.12066078,0.00000000,0.00000000,0.00000000); //object(shbbyhswall13_lvs) (18)
CreateObject(9131,1602.62609863,-1637.41735840,16.12066078,0.00000000,0.00000000,0.00000000); //object(shbbyhswall13_lvs) (19)
CreateObject(9131,1601.86059570,-1637.37951660,16.12066078,0.00000000,0.00000000,0.00000000); //object(shbbyhswall13_lvs) (20)
CreateObject(9131,1601.08557129,-1637.38989258,16.12066078,0.00000000,0.00000000,0.00000000); //object(shbbyhswall13_lvs) (21)
CreateObject(9131,1600.39245605,-1637.39135742,16.12066078,0.00000000,0.00000000,0.00000000); //object(shbbyhswall13_lvs) (22)
CreateObject(9131,1599.74902344,-1637.40905762,16.12066078,0.00000000,0.00000000,0.00000000); //object(shbbyhswall13_lvs) (23)
CreateObject(9131,1598.91674805,-1637.51452637,16.12066078,0.00000000,0.00000000,0.00000000); //object(shbbyhswall13_lvs) (24)
CreateObject(17065,1574.21459961,-1606.54284668,16.69680405,0.00000000,0.00000000,0.00000000); //object(cw2_garagecanopy) (1)
CreateObject(2690,1579.20666504,-1611.27941895,13.24278927,0.00000000,0.00000000,0.00000000); //object(cj_fire_ext) (1)
CreateObject(2690,1569.85461426,-1611.39807129,13.18903255,0.00000000,0.00000000,0.00000000); //object(cj_fire_ext) (2)
CreateObject(2690,1579.10986328,-1603.75122070,13.07051849,0.00000000,0.00000000,0.00000000); //object(cj_fire_ext) (3)
CreateObject(2690,1569.91955566,-1603.63830566,13.15778255,0.00000000,0.00000000,0.00000000); //object(cj_fire_ext) (4)
CreateObject(1676,1567.73156738,-1611.05187988,14.41048336,0.00000000,0.00000000,0.00000000); //object(washgaspump) (1)
CreateObject(1676,1580.24731445,-1611.54138184,14.46424007,0.00000000,0.00000000,0.00000000); //object(washgaspump) (2)
CreateObject(1676,1580.41992188,-1603.87438965,14.21409607,0.00000000,0.00000000,0.00000000); //object(washgaspump) (3)
CreateObject(1676,1568.04809570,-1603.88708496,14.33548355,0.00000000,0.00000000,0.00000000); //object(washgaspump) (4)
CreateObject(997,1544.19653320,-1632.62426758,12.38281250,0.00000000,0.00000000,276.00000000); //object(lhouse_barrier3) (1)
CreateObject(997,1544.46740723,-1620.27648926,12.55456161,0.00000000,0.00000000,270.00000000); //object(lhouse_barrier3) (2)
CreateObject(997,1546.49780273,-1617.86022949,12.67841148,0.00000000,0.00000000,230.00000000); //object(lhouse_barrier3) (3)
CreateObject(997,1547.40344238,-1637.14306641,12.63350296,0.00000000,0.00000000,154.00000000); //object(lhouse_barrier3) (4)
CreateObject(626,1543.97253418,-1618.52941895,14.60315800,0.00000000,0.00000000,0.00000000); //object(veg_palmkb2) (1)
CreateObject(626,1541.95300293,-1618.53637695,14.60315800,0.00000000,0.00000000,0.00000000); //object(veg_palmkb2) (2)
CreateObject(626,1540.31921387,-1618.38500977,14.60315800,0.00000000,0.00000000,0.00000000); //object(veg_palmkb2) (3)
CreateObject(626,1539.02209473,-1618.14941406,14.59547138,0.00000000,0.00000000,0.00000000); //object(veg_palmkb2) (4)
CreateObject(626,1538.92700195,-1617.15551758,14.59547138,0.00000000,0.00000000,0.00000000); //object(veg_palmkb2) (5)
CreateObject(626,1538.82751465,-1616.08129883,14.59547138,0.00000000,0.00000000,0.00000000); //object(veg_palmkb2) (6)
CreateObject(626,1538.94287109,-1614.87145996,14.59547138,0.00000000,0.00000000,0.00000000); //object(veg_palmkb2) (7)
CreateObject(626,1538.73474121,-1613.86450195,14.59547138,0.00000000,0.00000000,0.00000000); //object(veg_palmkb2) (8)
CreateObject(626,1538.52368164,-1612.75158691,14.59547138,0.00000000,0.00000000,0.00000000); //object(veg_palmkb2) (9)
CreateObject(626,1547.04663086,-1618.40551758,14.60315800,0.00000000,0.00000000,0.00000000); //object(veg_palmkb2) (10)
CreateObject(626,1548.26550293,-1618.52038574,14.60315800,0.00000000,0.00000000,0.00000000); //object(veg_palmkb2) (11)
CreateObject(626,1549.51672363,-1618.32373047,14.59547138,0.00000000,0.00000000,0.00000000); //object(veg_palmkb2) (12)
CreateObject(626,1546.90429688,-1637.46398926,14.60326481,0.00000000,0.00000000,0.00000000); //object(veg_palmkb2) (14)
CreateObject(626,1548.57824707,-1636.46423340,14.60367298,0.00000000,0.00000000,0.00000000); //object(veg_palmkb2) (15)
CreateObject(626,1549.66882324,-1636.49719238,14.60393906,0.00000000,0.00000000,0.00000000); //object(veg_palmkb2) (16)
CreateObject(626,1550.86633301,-1636.35229492,14.60423183,0.00000000,0.00000000,0.00000000); //object(veg_palmkb2) (17)
CreateObject(626,1551.83349609,-1636.17089844,14.60446835,0.00000000,0.00000000,0.00000000); //object(veg_palmkb2) (18)
CreateObject(638,1555.34594727,-1636.83312988,13.25376320,0.00000000,0.00000000,268.00000000); //object(kb_planter_bush) (1)
CreateObject(638,1560.17590332,-1636.02648926,13.25494289,0.00000000,0.00000000,270.00000000); //object(kb_planter_bush) (2)
CreateObject(638,1565.62512207,-1636.79260254,13.25627327,0.00000000,0.00000000,270.00000000); //object(kb_planter_bush) (3)
CreateObject(638,1570.87963867,-1636.48950195,13.25587845,0.00000000,0.00000000,270.00000000); //object(kb_planter_bush) (4)
CreateObject(638,1575.03430176,-1637.24621582,13.25857067,0.00000000,0.00000000,270.00000000); //object(kb_planter_bush) (5)
CreateObject(1360,1557.36035156,-1618.18005371,13.31889629,0.00000000,0.00000000,270.00000000); //object(cj_bush_prop3) (2)
CreateObject(1360,1561.72558594,-1618.14221191,13.31889629,0.00000000,0.00000000,270.00000000); //object(cj_bush_prop3) (3)
CreateObject(1360,1565.62854004,-1618.16210938,13.31889629,0.00000000,0.00000000,270.00000000); //object(cj_bush_prop3) (4)
CreateObject(1360,1569.43310547,-1618.29528809,13.31889629,0.00000000,0.00000000,270.00000000); //object(cj_bush_prop3) (5)
CreateObject(1360,1573.12145996,-1618.26208496,13.31889629,0.00000000,0.00000000,270.00000000); //object(cj_bush_prop3) (6)
CreateObject(1360,1576.88671875,-1618.13024902,13.31889629,0.00000000,0.00000000,268.00000000); //object(cj_bush_prop3) (7)
CreateObject(3660,1607.81250000,-1612.48132324,15.20253181,0.00000000,0.00000000,270.00000000); //object(lasairfbed_las) (1)
CreateObject(3660,1597.96020508,-1603.42797852,15.09361553,0.00000000,0.00000000,0.00000000); //object(lasairfbed_las) (2)
CreateObject(3660,1559.72216797,-1603.41552734,15.03588009,0.00000000,0.00000000,0.00000000); //object(lasairfbed_las) (3)
CreateObject(1364,1547.11755371,-1603.72973633,13.16693401,0.00000000,0.00000000,0.00000000); //object(cj_bush_prop) (1)
CreateObject(1364,1542.29870605,-1603.54821777,13.16693401,0.00000000,0.00000000,0.00000000); //object(cj_bush_prop) (2)
CreateObject(1364,1540.80822754,-1607.58325195,13.16693401,0.00000000,0.00000000,88.00000000); //object(cj_bush_prop) (3)
CreateObject(1364,1540.86987305,-1611.89843750,13.16693401,0.00000000,0.00000000,88.00000000); //object(cj_bush_prop) (4)
CreateObject(1364,1542.65612793,-1616.66162109,13.16693401,0.00000000,0.00000000,180.00000000); //object(cj_bush_prop) (5)
CreateObject(1364,1547.40454102,-1616.76477051,13.16693401,0.00000000,0.00000000,180.00000000); //object(cj_bush_prop) (6)
Gate = CreateObject(968,1544.70300293,-1630.54687500,13.37956238,0.00000000,270.00000000,270.00000000); //object(barrierturn) (1)
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[]);
{
if(strcmp(cmd, "/opengate", true) == 0) {
MoveObject(Gate, 1544.70300293,-1630.54687500,13.37956238, 1);
SendClientMessage(playerid, 0xB4B5B7FF, "Gate is Open!");
return 1;
}
#endif