gate help
#1

hey guys pls help me how can i fix this
Код:
F:\Gamemode's\raksamp\SATDM~RP V14\filterscripts\AHouse.pwn(106) : error 010: invalid function or declaration
F:\Gamemode's\raksamp\SATDM~RP V14\filterscripts\AHouse.pwn(109) : error 010: invalid function or declaration
F:\Gamemode's\raksamp\SATDM~RP V14\filterscripts\AHouse.pwn(111) : error 010: invalid function or declaration
F:\Gamemode's\raksamp\SATDM~RP V14\filterscripts\AHouse.pwn(114) : error 010: invalid function or declaration
F:\Gamemode's\raksamp\SATDM~RP V14\filterscripts\AHouse.pwn(116) : error 010: invalid function or declaration
F:\Gamemode's\raksamp\SATDM~RP V14\filterscripts\AHouse.pwn(119) : error 010: invalid function or declaration
F:\Gamemode's\raksamp\SATDM~RP V14\filterscripts\AHouse.pwn(121) : error 010: invalid function or declaration
F:\Gamemode's\raksamp\SATDM~RP V14\filterscripts\AHouse.pwn(124) : error 010: invalid function or declaration
F:\Gamemode's\raksamp\SATDM~RP V14\filterscripts\AHouse.pwn(126) : error 010: invalid function or declaration
F:\Gamemode's\raksamp\SATDM~RP V14\filterscripts\AHouse.pwn(96) : warning 204: symbol is assigned a value that is never used: "gate1"
F:\Gamemode's\raksamp\SATDM~RP V14\filterscripts\AHouse.pwn(97) : warning 204: symbol is assigned a value that is never used: "gate2"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


9 Errors.
Reply
#2

can you post to code?
Reply
#3

Код:
#include <a_samp>
new Gate1,Gate2

CreateObject(3511,2597.3000500,758.5999800,10.0000000,0.0000000,0.0000000,0.0000000); //object(vgsn_nitree_b01) (1)
CreateObject(3511,2609.5000000,758.2000100,10.0000000,0.0000000,0.0000000,0.0000000); //object(vgsn_nitree_b01) (2)
CreateObject(3511,2585.3000500,758.9000200,10.0000000,0.0000000,0.0000000,0.0000000); //object(vgsn_nitree_b01) (3)
CreateObject(1597,2551.1001000,745.7999900,12.5000000,0.0000000,0.0000000,0.0000000); //object(cntrlrsac1) (1)
CreateObject(1597,2543.6001000,745.7000100,12.5000000,0.0000000,0.0000000,0.0000000); //object(cntrlrsac1) (2)
CreateObject(1597,2558.1001000,746.0000000,12.5000000,0.0000000,0.0000000,0.0000000); //object(cntrlrsac1) (3)
CreateObject(1597,2565.1001000,745.9000200,12.5000000,0.0000000,0.0000000,0.0000000); //object(cntrlrsac1) (4)
CreateObject(1597,2572.3000500,746.0999800,12.5000000,0.0000000,0.0000000,0.0000000); //object(cntrlrsac1) (5)
CreateObject(1597,2579.1999500,745.9000200,12.5000000,0.0000000,0.0000000,0.0000000); //object(cntrlrsac1) (6)
CreateObject(1597,2615.3000500,746.0000000,12.5000000,0.0000000,0.0000000,0.0000000); //object(cntrlrsac1) (7)
CreateObject(1597,2622.1999500,746.2000100,12.5000000,0.0000000,0.0000000,0.0000000); //object(cntrlrsac1) (8)
CreateObject(1597,2629.1999500,745.7999900,12.5000000,0.0000000,0.0000000,0.0000000); //object(cntrlrsac1) (9)
CreateObject(1597,2636.0000000,746.2999900,12.5000000,0.0000000,0.0000000,0.0000000); //object(cntrlrsac1) (10)
CreateObject(1597,2643.0000000,746.0999800,12.5000000,0.0000000,0.0000000,0.0000000); //object(cntrlrsac1) (11)
CreateObject(1597,2650.3999000,746.0999800,12.5000000,0.0000000,0.0000000,0.0000000); //object(cntrlrsac1) (12)
CreateObject(1597,2649.3000500,732.0999800,12.5000000,0.0000000,0.0000000,0.0000000); //object(cntrlrsac1) (13)
CreateObject(1597,2642.6001000,731.9000200,12.5000000,0.0000000,0.0000000,0.0000000); //object(cntrlrsac1) (14)
CreateObject(1597,2634.6999500,731.9000200,12.5000000,0.0000000,0.0000000,0.0000000); //object(cntrlrsac1) (15)
CreateObject(1597,2628.1999500,732.0000000,12.5000000,0.0000000,0.0000000,0.0000000); //object(cntrlrsac1) (16)
CreateObject(1597,2620.6999500,732.5000000,12.5000000,0.0000000,0.0000000,0.0000000); //object(cntrlrsac1) (17)
CreateObject(1597,2572.3999000,731.9000200,12.5000000,0.0000000,0.0000000,0.0000000); //object(cntrlrsac1) (18)
CreateObject(1597,2565.6001000,731.5000000,12.5000000,0.0000000,0.0000000,0.0000000); //object(cntrlrsac1) (19)
CreateObject(1597,2557.8999000,731.7999900,12.5000000,0.0000000,0.0000000,0.0000000); //object(cntrlrsac1) (20)
CreateObject(1597,2551.1001000,732.0999800,12.5000000,0.0000000,0.0000000,0.0000000); //object(cntrlrsac1) (21)
CreateObject(1597,2544.6999500,731.7999900,12.5000000,0.0000000,0.0000000,0.0000000); //object(cntrlrsac1) (22)
CreateObject(869,2589.6999500,737.5000000,10.3000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (1)
CreateObject(869,2589.8000500,738.0000000,10.3000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (2)
CreateObject(869,2589.8000500,738.0000000,10.3000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (3)
CreateObject(869,2588.1999500,735.5000000,10.3000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (4)
CreateObject(869,2588.1999500,735.5000000,10.3000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (5)
CreateObject(869,2587.8000500,735.0999800,10.3000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (6)
CreateObject(869,2587.8000500,735.0999800,10.3000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (7)
CreateObject(869,2586.6999500,734.0999800,10.3000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (8)
CreateObject(869,2586.6999500,734.0999800,10.3000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (9)
CreateObject(869,2586.6999500,734.0999800,10.3000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (10)
CreateObject(869,2585.6001000,733.5000000,10.3000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (11)
CreateObject(869,2585.6001000,733.5000000,10.3000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (12)
CreateObject(869,2585.1001000,732.5000000,10.3000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (13)
CreateObject(869,2585.1001000,732.5000000,10.3000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (14)
CreateObject(869,2585.1001000,732.5000000,10.3000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (15)
CreateObject(869,2583.1999500,731.0000000,10.3000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (16)
CreateObject(869,2583.1999500,731.0000000,10.3000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (17)
CreateObject(869,2583.1001000,732.0000000,10.3000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (18)
CreateObject(869,2581.5000000,730.2999900,10.3000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (19)
CreateObject(869,2581.5000000,730.2999900,10.3000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (20)
CreateObject(869,2581.5000000,730.2999900,10.3000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (21)
CreateObject(869,2581.1001000,730.0000000,10.3000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (22)
CreateObject(869,2581.1001000,730.0000000,10.3000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (23)
CreateObject(869,2584.1001000,734.2999900,10.3000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (24)
CreateObject(869,2583.5000000,734.7000100,10.3000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (25)
CreateObject(869,2583.5000000,734.7000100,10.3000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (26)
CreateObject(869,2582.3000500,735.5000000,10.3000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (27)
CreateObject(869,2581.8000500,736.5000000,10.3000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (28)
CreateObject(869,2582.1999500,736.5999800,10.3000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (29)
CreateObject(869,2582.0000000,736.5999800,10.3000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (30)
CreateObject(869,2587.1001000,731.5999800,10.3000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (31)
CreateObject(869,2587.1001000,731.5999800,10.3000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (32)
CreateObject(869,2588.8999000,729.9000200,10.3000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (33)
CreateObject(869,2587.0000000,732.0999800,10.3000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (34)
CreateObject(869,2587.0000000,732.0999800,10.3000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (35)
CreateObject(869,2588.5000000,730.4000200,10.3000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (36)
CreateObject(869,2588.5000000,730.4000200,10.3000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (37)
CreateObject(869,2586.8000500,731.5999800,10.3000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (38)
CreateObject(869,2595.8999000,735.7999900,10.3000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (39)
CreateObject(869,2595.8999000,733.4000200,10.3000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (40)
CreateObject(869,2595.8999000,730.9000200,10.3000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (41)
CreateObject(869,2595.8999000,730.7999900,10.3000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (42)
CreateObject(869,2595.8000500,728.5999800,10.3000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (43)
CreateObject(869,2595.8000500,726.0000000,10.5000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (44)
CreateObject(869,2599.0000000,735.7999900,10.3000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (45)
CreateObject(869,2601.3999000,734.0999800,10.3000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (46)
CreateObject(869,2601.1999500,731.5999800,10.3000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (47)
CreateObject(869,2598.1001000,731.0000000,10.3000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (48)
CreateObject(869,2598.1001000,731.0000000,10.3000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (49)
CreateObject(869,2601.8999000,729.2999900,10.3000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (50)
CreateObject(869,2601.8999000,729.2999900,10.3000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (51)
CreateObject(869,2602.6001000,726.2999900,10.5000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (52)
CreateObject(869,2602.6001000,726.2999900,10.5000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (53)
CreateObject(869,2599.1001000,725.7999900,10.5000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (54)
CreateObject(869,2595.6999500,727.5000000,10.3000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowerswee) (55)
CreateObject(991,2597.5000000,754.7000100,11.2000000,0.0000000,0.0000000,0.0000000); //object(bar_barriergate1) (1)

//gates
Gate1 = CreateObject(980,2604.5000000,754.7000100,12.6000000,0.0000000,0.0000000,0.0000000); //object(airportgate) (1)
Gate2 = CreateObject(980,2590.1999500,754.5000000,12.6000000,0.0000000,0.0000000,0.0000000); //object(airportgate) (2)
return 1;
}

if(strcmp(cmdtext,"/xbopen1",true)==0)//gatesopen1
{
MoveObject(gate1, 2604.5000000, 754.7000100, 12.6000000, 5.00);
return 1;
}
if(strcmp(cmdtext,"/xbclose1",true)==0)//gatesclosed1
{
MoveObject(gate1, 2604.5000000, 754.7000100, 7.1000000, 5.00);
return 1;
}
if(strcmp(cmdtext,"/xbopen2",true)==0)//second front gateopen
{
MoveObject(gate2, 2590.1999500, 754.5000000, 12.6000000, 5.00);
return 1;
}
if(strcmp(cmdtext,"/xbclose2",true)==0)//second front gate closed
{
MoveObject(gate2, 2590.1999500, 754.5000000, 6.9000000, 5.00);
return 1;
}
here is problem
Код:
F:\Gamemode's\raksamp\SATDM~RP V14\filterscripts\AHouse.pwn(5) : error 001: expected token: ";", but found "-identifier-"
F:\Gamemode's\raksamp\SATDM~RP V14\filterscripts\AHouse.pwn(88) : error 010: invalid function or declaration
F:\Gamemode's\raksamp\SATDM~RP V14\filterscripts\AHouse.pwn(90) : error 010: invalid function or declaration
F:\Gamemode's\raksamp\SATDM~RP V14\filterscripts\AHouse.pwn(93) : error 010: invalid function or declaration
F:\Gamemode's\raksamp\SATDM~RP V14\filterscripts\AHouse.pwn(96) : error 010: invalid function or declaration
F:\Gamemode's\raksamp\SATDM~RP V14\filterscripts\AHouse.pwn(98) : error 010: invalid function or declaration
F:\Gamemode's\raksamp\SATDM~RP V14\filterscripts\AHouse.pwn(101) : error 010: invalid function or declaration
F:\Gamemode's\raksamp\SATDM~RP V14\filterscripts\AHouse.pwn(103) : error 010: invalid function or declaration
F:\Gamemode's\raksamp\SATDM~RP V14\filterscripts\AHouse.pwn(106) : error 010: invalid function or declaration
F:\Gamemode's\raksamp\SATDM~RP V14\filterscripts\AHouse.pwn(108) : error 010: invalid function or declaration
F:\Gamemode's\raksamp\SATDM~RP V14\filterscripts\AHouse.pwn(111) : error 010: invalid function or declaration
F:\Gamemode's\raksamp\SATDM~RP V14\filterscripts\AHouse.pwn(113) : warning 203: symbol is never used: "Gate1"
F:\Gamemode's\raksamp\SATDM~RP V14\filterscripts\AHouse.pwn(113) : warning 203: symbol is never used: "Gate2"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


11 Errors.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)