objects
#1

i have a problem i added like over 80-100 objects no error in pawno but when i try to put on server i can't see the objects why ?
it taking a time to load on server because are many objects?
Reply
#2

can u show us a code of where you put your objects >> also are ur objects in the main gamemode or in a seperate filterscript
Reply
#3

pawn Код:
public OnGameModeInit()
{
CreateObject(981,616.29980469,-1321.00000000,12.69999981,0.00000000,0.00000000,95.99853516); //object(helix_barrier) (1)
CreateObject(981,613.59997559,-1400.90002441,12.69999981,0.00000000,0.00000000,91.99853516); //object(helix_barrier) (2)
CreateObject(981,650.40002441,-1319.90002441,13.69999981,0.00000000,0.00000000,271.99401855); //object(helix_barrier) (3)
CreateObject(7657,785.70001221,-1154.59997559,24.10000038,0.00000000,0.00000000,270.00000000); //object(plasticsgate1) (1)
CreateObject(7657,663.20001221,-1309.30004883,14.19999981,0.00000000,0.00000000,179.75000000); //object(plasticsgate1) (2)
CreateObject(7657,654.29998779,-1497.69995117,15.60000038,0.00000000,0.00000000,269.74731445); //object(plasticsgate1) (3)
CreateObject(981,649.59997559,-1401.80004883,13.80000019,0.00000000,0.00000000,271.99401855); //object(helix_barrier) (4)
CreateObject(8150,-2818.89990234,-264.29998779,10.50000000,0.00000000,0.00000000,268.00000000); //object(vgsselecfence04) (1)
CreateObject(8150,-2828.30004883,-387.89999390,9.10000038,0.00000000,0.00000000,266.75000000); //object(vgsselecfence04) (2)
CreateObject(8150,-2504.50000000,-2205.30004883,32.00000000,0.00000000,0.00000000,288.50000000); //object(vgsselecfence04) (3)
CreateObject(8150,-2472.89990234,-2318.89990234,34.50000000,0.00000000,0.00000000,283.50000000); //object(vgsselecfence04) (4)
CreateObject(8150,-2474.89990234,-2314.10009766,31.20000076,0.00000000,0.00000000,283.25000000); //object(vgsselecfence04) (5)
CreateObject(8150,-2549.19995117,-2220.00000000,31.79999924,0.00000000,0.00000000,290.00000000); //object(vgsselecfence04) (6)
CreateObject(8149,-2709.00000000,-2273.50000000,46.09999847,0.00000000,0.00000000,0.00000000); //object(vgsselecfence03) (1)
CreateObject(8150,-2513.39990234,-2339.19995117,31.20000076,0.00000000,0.00000000,284.00000000); //object(vgsselecfence04) (7)
CreateObject(8165,-2497.80004883,-2520.69995117,36.79999924,0.00000000,0.00000000,8.00000000); //object(vgsselecfence10) (1)
CreateObject(8210,-2450.80004883,-2400.89990234,32.79999924,0.00000000,0.00000000,292.00000000); //object(vgsselecfence12) (1)
CreateObject(7657,597.40002441,-1216.19995117,18.79999924,0.00000000,0.00000000,290.00000000); //object(plasticsgate1) (4)
CreateObject(7657,603.90002441,-1234.40002441,18.89999962,0.00000000,0.00000000,289.99511719); //object(plasticsgate1) (5)
CreateObject(7657,659.79998779,-1319.80004883,14.30000019,0.00000000,0.00000000,269.99511719); //object(plasticsgate1) (6)
CreateObject(7657,610.90002441,-1319.80004883,14.30000019,0.00000000,0.00000000,273.99450684); //object(plasticsgate1) (7)
CreateObject(7657,617.70001221,-1295.59997559,16.10000038,0.00000000,0.00000000,273.99353027); //object(plasticsgate1) (8)
CreateObject(7657,604.79998779,-1395.69995117,14.10000038,0.00000000,0.00000000,273.99353027); //object(plasticsgate1) (9)
CreateObject(7657,606.40002441,-1415.69995117,14.30000019,0.00000000,0.00000000,273.99353027); //object(plasticsgate1) (10)
CreateObject(7657,654.50000000,-1395.50000000,14.10000038,0.00000000,0.00000000,273.99353027); //object(plasticsgate1) (11)
CreateObject(7657,656.00000000,-1415.40002441,14.30000019,0.00000000,0.00000000,273.99353027); //object(plasticsgate1) (12)
CreateObject(7657,586.70001221,-1529.09997559,16.00000000,0.00000000,0.00000000,179.99353027); //object(plasticsgate1) (13)
CreateObject(7657,651.70001221,-1549.09997559,15.60000038,0.00000000,0.00000000,89.98901367); //object(plasticsgate1) (14)
CreateObject(7657,613.29998779,-1578.50000000,16.70000076,0.00000000,0.00000000,89.98901367); //object(plasticsgate1) (15)
CreateObject(7657,613.09997559,-1595.90002441,16.70000076,0.00000000,0.00000000,89.98901367); //object(plasticsgate1) (16)
CreateObject(7657,618.79998779,-1676.59997559,16.70000076,0.00000000,0.00000000,89.98901367); //object(plasticsgate1) (17)
CreateObject(7657,616.79998779,-1695.59997559,16.29999924,0.00000000,0.00000000,79.98901367); //object(plasticsgate1) (18)
CreateObject(7657,614.00000000,-1713.59997559,14.89999962,0.00000000,0.00000000,81.98901367); //object(plasticsgate1) (19)
CreateObject(7657,612.90002441,-1733.50000000,14.30000019,0.00000000,0.00000000,81.98547363); //object(plasticsgate1) (20)
CreateObject(7657,610.50000000,-1748.19995117,14.19999981,0.00000000,0.00000000,81.98547363); //object(plasticsgate1) (21)
CreateObject(7657,653.40002441,-1766.50000000,14.30000019,0.00000000,0.00000000,161.98547363); //object(plasticsgate1) (22)
CreateObject(7657,679.29998779,-1732.19995117,14.30000019,0.00000000,0.00000000,161.98242188); //object(plasticsgate1) (23)
CreateObject(7657,697.79998779,-1738.09997559,14.10000038,0.00000000,0.00000000,161.98242188); //object(plasticsgate1) (24)
CreateObject(7657,716.29998779,-1745.40002441,15.39999962,0.00000000,0.00000000,161.98242188); //object(plasticsgate1) (25)
CreateObject(7657,733.79998779,-1751.09997559,15.19999981,0.00000000,0.00000000,161.98242188); //object(plasticsgate1) (26)
CreateObject(7657,755.00000000,-1754.30004883,13.50000000,0.00000000,0.00000000,169.98242188); //object(plasticsgate1) (27)
CreateObject(7657,737.50000000,-1792.59997559,14.10000038,0.00000000,0.00000000,169.98046875); //object(plasticsgate1) (28)
CreateObject(7657,787.00000000,-1802.80004883,13.69999981,0.00000000,0.00000000,169.98046875); //object(plasticsgate1) (29)
CreateObject(7657,820.90002441,-1803.19995117,13.89999962,0.00000000,0.00000000,179.98046875); //object(plasticsgate1) (30)
CreateObject(7657,840.09997559,-1803.50000000,13.89999962,0.00000000,0.00000000,179.97802734); //object(plasticsgate1) (31)
CreateObject(7657,810.40002441,-1754.40002441,14.10000038,0.00000000,0.00000000,179.97802734); //object(plasticsgate1) (32)
CreateObject(7657,863.40002441,-1761.19995117,14.30000019,0.00000000,0.00000000,179.97802734); //object(plasticsgate1) (33)
CreateObject(7657,882.90002441,-1762.09997559,14.30000019,0.00000000,0.00000000,172.22802734); //object(plasticsgate1) (34)
CreateObject(7657,902.20001221,-1764.19995117,14.30000019,0.00000000,0.00000000,174.22717285); //object(plasticsgate1) (35)
CreateObject(7657,922.09997559,-1765.90002441,14.30000019,0.00000000,0.00000000,174.22668457); //object(plasticsgate1) (36)
CreateObject(7657,941.70001221,-1768.80004883,14.60000038,0.00000000,0.00000000,170.22668457); //object(plasticsgate1) (37)
CreateObject(7657,961.50000000,-1772.69995117,14.60000038,0.00000000,0.00000000,167.47668457); //object(plasticsgate1) (38)
CreateObject(7657,980.79998779,-1777.40002441,15.00000000,0.00000000,0.00000000,165.47607422); //object(plasticsgate1) (39)
CreateObject(7657,999.70001221,-1782.80004883,14.89999962,0.00000000,0.00000000,161.72607422); //object(plasticsgate1) (40)
CreateObject(7657,1018.50000000,-1788.69995117,14.69999981,0.00000000,0.00000000,159.22424316); //object(plasticsgate1) (41)
CreateObject(7657,1036.00000000,-1796.09997559,14.39999962,0.00000000,0.00000000,149.21936035); //object(plasticsgate1) (42)
CreateObject(7657,1050.90002441,-1808.69995117,14.50000000,0.00000000,0.00000000,129.21630859); //object(plasticsgate1) (43)
CreateObject(7657,1061.00000000,-1824.90002441,14.39999962,0.00000000,0.00000000,111.21566772); //object(plasticsgate1) (44)
CreateObject(7657,1067.50000000,-1843.50000000,14.30000019,0.00000000,0.00000000,105.21453857); //object(plasticsgate1) (45)
CreateObject(7657,1071.40002441,-1860.50000000,14.30000019,0.00000000,0.00000000,99.21057129); //object(plasticsgate1) (46)
CreateObject(7657,944.59997559,-1812.30004883,14.10000038,0.00000000,0.00000000,165.47607422); //object(plasticsgate1) (47)
CreateObject(7657,1004.70001221,-1825.40002441,14.60000038,0.00000000,0.00000000,165.47607422); //object(plasticsgate1) (48)
CreateObject(7657,1022.09997559,-1833.69995117,14.50000000,0.00000000,0.00000000,145.47607422); //object(plasticsgate1) (49)
CreateObject(7657,1030.50000000,-1849.50000000,14.30000019,0.00000000,0.00000000,95.47546387); //object(plasticsgate1) (50)
CreateObject(7657,1032.00000000,-1869.19995117,14.00000000,0.00000000,0.00000000,95.47119141); //object(plasticsgate1) (51)
CreateObject(7657,1033.40002441,-1888.30004883,13.80000019,0.00000000,0.00000000,95.47119141); //object(plasticsgate1) (52)
CreateObject(7657,1035.09997559,-1907.19995117,13.80000019,0.00000000,0.00000000,95.47119141); //object(plasticsgate1) (53)
CreateObject(7657,1036.50000000,-1926.80004883,13.80000019,0.00000000,0.00000000,95.47119141); //object(plasticsgate1) (54)
CreateObject(7657,1036.90002441,-1946.30004883,13.80000019,0.00000000,0.00000000,87.47119141); //object(plasticsgate1) (55)
CreateObject(7657,1036.30004883,-1966.09997559,13.80000019,0.00000000,0.00000000,89.46765137); //object(plasticsgate1) (56)
CreateObject(7657,1035.09997559,-1986.00000000,13.80000019,0.00000000,0.00000000,85.46716309); //object(plasticsgate1) (57)
CreateObject(7657,1033.09997559,-2005.59997559,13.80000019,0.00000000,0.00000000,83.46264648); //object(plasticsgate1) (58)
CreateObject(7657,1030.90002441,-2025.59997559,13.80000019,0.00000000,0.00000000,83.45764160); //object(plasticsgate1) (59)
CreateObject(7657,1027.90002441,-2045.40002441,13.80000019,0.00000000,0.00000000,81.45764160); //object(plasticsgate1) (60)
CreateObject(7657,1025.00000000,-2065.50000000,13.80000019,0.00000000,0.00000000,81.45263672); //object(plasticsgate1) (61)
CreateObject(7657,1084.09997559,-2315.30004883,13.60000038,0.00000000,0.00000000,303.45764160); //object(plasticsgate1) (62)
CreateObject(7657,1095.59997559,-2330.50000000,13.30000019,0.00000000,0.00000000,307.45336914); //object(plasticsgate1) (63)
CreateObject(7657,1107.59997559,-2345.50000000,13.00000000,0.00000000,0.00000000,309.45239258); //object(plasticsgate1) (64)
CreateObject(7657,1120.30004883,-2359.69995117,12.69999981,0.00000000,0.00000000,311.45239258); //object(plasticsgate1) (65)
CreateObject(7657,1134.50000000,-2373.30004883,12.30000019,0.00000000,0.00000000,318.95141602); //object(plasticsgate1) (66)
CreateObject(7657,1149.40002441,-2385.60009766,12.00000000,0.00000000,0.00000000,318.95007324); //object(plasticsgate1) (67)
CreateObject(7657,1164.59997559,-2397.10009766,11.60000038,0.00000000,0.00000000,322.94958496); //object(plasticsgate1) (68)
CreateObject(7657,1181.19995117,-2407.89990234,11.19999981,0.00000000,0.00000000,328.94909668); //object(plasticsgate1) (69)
CreateObject(7657,1198.30004883,-2416.89990234,10.89999962,0.00000000,0.00000000,332.94714355); //object(plasticsgate1) (70)
CreateObject(7657,1216.30004883,-2424.50000000,10.50000000,0.00000000,0.00000000,336.94616699); //object(plasticsgate1) (71)
CreateObject(7657,1235.00000000,-2431.69995117,10.10000038,0.00000000,0.00000000,340.94519043); //object(plasticsgate1) (72)
CreateObject(7657,1253.80004883,-2436.19995117,9.69999981,0.00000000,0.00000000,346.94421387); //object(plasticsgate1) (73)
CreateObject(7657,1272.69995117,-2439.39990234,9.30000019,0.00000000,0.00000000,350.94274902); //object(plasticsgate1) (74)
CreateObject(7657,1291.50000000,-2440.30004883,8.69999981,0.00000000,0.00000000,352.94177246); //object(plasticsgate1) (75)
CreateObject(7657,1311.30004883,-2440.89990234,8.50000000,0.00000000,0.00000000,0.94128418); //object(plasticsgate1) (76)
CreateObject(7657,1329.09997559,-2440.50000000,8.50000000,0.00000000,0.00000000,0.93933105); //object(plasticsgate1) (77)
CreateObject(7657,1339.50000000,-2449.89990234,8.50000000,0.00000000,0.00000000,270.93933105); //object(plasticsgate1) (78)
CreateObject(7657,1340.19995117,-2468.50000000,8.39999962,0.00000000,0.00000000,270.93383789); //object(plasticsgate1) (79)
CreateObject(7657,1336.19995117,-2508.30004883,14.10000038,0.00000000,0.00000000,0.93933105); //object(plasticsgate1) (80)
CreateObject(7657,1354.69995117,-2507.00000000,13.69999981,0.00000000,0.00000000,0.93933105); //object(plasticsgate1) (81)
CreateObject(7657,1444.30004883,-2705.60009766,14.30000019,0.00000000,0.00000000,262.93933105); //object(plasticsgate1) (82)
CreateObject(7657,1442.40002441,-2725.00000000,12.19999981,0.00000000,10.00000000,262.93579102); //object(plasticsgate1) (83)
CreateObject(7657,1442.19995117,-2743.00000000,7.90000010,0.00000000,9.99755859,262.93579102); //object(plasticsgate1) (84)
CreateObject(7657,1441.09997559,-2761.00000000,4.09999990,0.00000000,9.99755859,262.93579102); //object(plasticsgate1) (85)
CreateObject(7657,2186.00000000,-2495.39990234,14.10000038,0.00000000,0.00000000,268.93579102); //object(plasticsgate1) (86)
CreateObject(7657,2177.10009766,-2359.89990234,14.10000038,0.00000000,0.00000000,48.93432617); //object(plasticsgate1) (87)
CreateObject(7657,2287.19995117,-2302.50000000,14.10000038,0.00000000,0.00000000,224.93310547); //object(plasticsgate1) (88)
CreateObject(7657,2286.19995117,-2252.60009766,14.10000038,0.00000000,0.00000000,44.92858887); //object(plasticsgate1) (89)
CreateObject(7657,2274.60009766,-2265.00000000,14.69999981,0.00000000,0.00000000,44.92858887); //object(plasticsgate1) (90)
CreateObject(7657,2353.10009766,-2187.50000000,14.30000019,0.00000000,0.00000000,38.92858887); //object(plasticsgate1) (91)
CreateObject(7657,2368.69995117,-2175.10009766,14.30000019,0.00000000,0.00000000,38.92456055); //object(plasticsgate1) (92)
CreateObject(7657,2380.19995117,-2168.10009766,14.30000019,0.00000000,0.00000000,28.92456055); //object(plasticsgate1) (93)
CreateObject(7657,2397.69995117,-2159.10009766,14.30000019,0.00000000,0.00000000,22.92150879); //object(plasticsgate1) (94)
CreateObject(7657,2415.69995117,-2150.19995117,14.30000019,0.00000000,0.00000000,26.91748047); //object(plasticsgate1) (95)
CreateObject(7657,2714.00000000,-2145.10009766,11.60000038,0.00000000,0.00000000,358.92150879); //object(plasticsgate1) (96)
CreateObject(7657,2733.80004883,-2143.80004883,11.80000019,0.00000000,0.00000000,6.91784668); //object(plasticsgate1) (97)
CreateObject(7657,2753.30004883,-2139.60009766,11.80000019,0.00000000,0.00000000,16.91589355); //object(plasticsgate1) (98)
CreateObject(7657,2771.19995117,-2130.80004883,11.80000019,0.00000000,0.00000000,34.91345215); //object(plasticsgate1) (99)
CreateObject(7657,2786.69995117,-2117.80004883,11.80000019,0.00000000,0.00000000,44.90905762); //object(plasticsgate1) (100)
CreateObject(7657,2798.69995117,-2102.39990234,11.80000019,0.00000000,0.00000000,54.90661621); //object(plasticsgate1) (101)
CreateObject(7657,2807.30004883,-2084.89990234,11.80000019,0.00000000,0.00000000,70.65417480); //object(plasticsgate1) (102)
CreateObject(7657,2811.50000000,-2065.69995117,11.80000019,0.00000000,0.00000000,84.89929199); //object(plasticsgate1) (103)
CreateObject(7657,2811.89990234,-2046.40002441,11.69999981,0.00000000,0.00000000,90.89685059); //object(plasticsgate1) (105)
CreateObject(7657,2812.89990234,-1982.69995117,11.80000019,0.00000000,0.00000000,90.89538574); //object(plasticsgate1) (106)
CreateObject(7657,2812.89990234,-1965.50000000,11.39999962,0.00000000,0.00000000,90.89538574); //object(plasticsgate1) (107)
CreateObject(7657,2812.89990234,-1945.40002441,11.39999962,0.00000000,0.00000000,90.89538574); //object(plasticsgate1) (108)
CreateObject(7657,2813.00000000,-1925.19995117,11.80000019,0.00000000,0.00000000,90.89538574); //object(plasticsgate1) (109)
CreateObject(7657,2813.30004883,-1905.40002441,11.80000019,0.00000000,0.00000000,90.89538574); //object(plasticsgate1) (110)
CreateObject(7657,2812.19995117,-1885.69995117,11.60000038,0.00000000,0.00000000,90.89538574); //object(plasticsgate1) (111)
CreateObject(7657,2813.69995117,-1849.69995117,11.80000019,0.00000000,0.00000000,86.89538574); //object(plasticsgate1) (112)
CreateObject(7657,2846.19995117,-1658.40002441,11.39999962,0.00000000,0.00000000,71.39086914); //object(plasticsgate1) (113)
CreateObject(7657,2852.30004883,-1639.90002441,11.80000019,0.00000000,0.00000000,71.38916016); //object(plasticsgate1) (114)
CreateObject(7657,2858.69995117,-1621.40002441,11.80000019,0.00000000,0.00000000,71.38916016); //object(plasticsgate1) (115)
CreateObject(8150,2877.00000000,-1551.09997559,13.00000000,0.00000000,0.00000000,76.00000000); //object(vgsselecfence04) (8)
CreateObject(8150,2892.50000000,-1428.40002441,13.19999981,0.00000000,0.00000000,90.00000000); //object(vgsselecfence04) (9)
CreateObject(8150,2882.19995117,-1306.40002441,13.00000000,0.00000000,0.00000000,99.00000000); //object(vgsselecfence04) (10)
CreateObject(8150,2859.19995117,-1085.19995117,13.00000000,0.00000000,0.00000000,90.00000000); //object(vgsselecfence04) (11)
CreateObject(8150,2861.39990234,-964.50000000,13.00000000,0.00000000,0.00000000,268.00000000); //object(vgsselecfence04) (12)
CreateObject(8150,2864.60009766,-840.40002441,13.00000000,0.00000000,0.00000000,90.00000000); //object(vgsselecfence04) (13)
CreateObject(8150,2864.39990234,-714.50000000,12.89999962,0.00000000,0.00000000,270.00000000); //object(vgsselecfence04) (14)
CreateObject(7657,2853.69995117,-653.40002441,11.60000038,0.00000000,0.00000000,0.00000000); //object(plasticsgate1) (116)
CreateObject(7657,2836.80004883,-653.59997559,11.69999981,0.00000000,0.00000000,0.00000000); //object(plasticsgate1) (117)
CreateObject(7657,2826.10009766,-654.90002441,20.50000000,0.00000000,50.00000000,0.00000000); //object(plasticsgate1) (118)

return 1;
}
Reply
#4

are u using this code in a filterscript ?

then all this code should be in

OnFilterScriptInit
Reply
#5

it's same it working same in the FilterSriptInit like OnGameModeInit...
Reply
#6

one problem could be caused by objects being created without a reference:
Код:
CreateObject(blabla);
creates the object, but the script cant know which one to refer when deleting it. to solve this problem, create an array for holding the returned objct IDs (returned by CreateObject):
Код:
new Object[200];
new ObjectsLoaded;
...and now your objects lines - a modified version which takes care for the array (Object[]):
Код:
new o;//array Object[0] gets used as next pointer for the object id:
Object[o]=CreateObject(981,616.29980469,-1321.00000000,12.69999981,0.00000000,0.00000000,95.99853516);o++; //object(helix_barrier) (1)
Object[o]=CreateObject(981,613.59997559,-1400.90002441,12.69999981,0.00000000,0.00000000,91.99853516);o++; //object(helix_barrier) (2)
Object[o]=CreateObject(981,650.40002441,-1319.90002441,13.69999981,0.00000000,0.00000000,271.99401855);o++; //object(helix_barrier) (3)
Object[o]=CreateObject(7657,785.70001221,-1154.59997559,24.10000038,0.00000000,0.00000000,270.00000000);o++; //object(plasticsgate1) (1)
Object[o]=CreateObject(7657,663.20001221,-1309.30004883,14.19999981,0.00000000,0.00000000,179.75000000);o++; //object(plasticsgate1) (2)
Object[o]=CreateObject(7657,654.29998779,-1497.69995117,15.60000038,0.00000000,0.00000000,269.74731445);o++; //object(plasticsgate1) (3)
Object[o]=CreateObject(981,649.59997559,-1401.80004883,13.80000019,0.00000000,0.00000000,271.99401855);o++; //object(helix_barrier) (4)
Object[o]=CreateObject(8150,-2818.89990234,-264.29998779,10.50000000,0.00000000,0.00000000,268.00000000);o++; //object(vgsselecfence04) (1)
Object[o]=CreateObject(8150,-2828.30004883,-387.89999390,9.10000038,0.00000000,0.00000000,266.75000000);o++; //object(vgsselecfence04) (2)
Object[o]=CreateObject(8150,-2504.50000000,-2205.30004883,32.00000000,0.00000000,0.00000000,288.50000000);o++; //object(vgsselecfence04) (3)
Object[o]=CreateObject(8150,-2472.89990234,-2318.89990234,34.50000000,0.00000000,0.00000000,283.50000000);o++; //object(vgsselecfence04) (4)
Object[o]=CreateObject(8150,-2474.89990234,-2314.10009766,31.20000076,0.00000000,0.00000000,283.25000000);o++; //object(vgsselecfence04) (5)
Object[o]=CreateObject(8150,-2549.19995117,-2220.00000000,31.79999924,0.00000000,0.00000000,290.00000000);o++; //object(vgsselecfence04) (6)
Object[o]=CreateObject(8149,-2709.00000000,-2273.50000000,46.09999847,0.00000000,0.00000000,0.00000000);o++; //object(vgsselecfence03) (1)
Object[o]=CreateObject(8150,-2513.39990234,-2339.19995117,31.20000076,0.00000000,0.00000000,284.00000000);o++; //object(vgsselecfence04) (7)
Object[o]=CreateObject(8165,-2497.80004883,-2520.69995117,36.79999924,0.00000000,0.00000000,8.00000000);o++; //object(vgsselecfence10) (1)
Object[o]=CreateObject(8210,-2450.80004883,-2400.89990234,32.79999924,0.00000000,0.00000000,292.00000000);o++; //object(vgsselecfence12) (1)
Object[o]=CreateObject(7657,597.40002441,-1216.19995117,18.79999924,0.00000000,0.00000000,290.00000000);o++; //object(plasticsgate1) (4)
Object[o]=CreateObject(7657,603.90002441,-1234.40002441,18.89999962,0.00000000,0.00000000,289.99511719);o++; //object(plasticsgate1) (5)
Object[o]=CreateObject(7657,659.79998779,-1319.80004883,14.30000019,0.00000000,0.00000000,269.99511719);o++; //object(plasticsgate1) (6)
Object[o]=CreateObject(7657,610.90002441,-1319.80004883,14.30000019,0.00000000,0.00000000,273.99450684);o++; //object(plasticsgate1) (7)
Object[o]=CreateObject(7657,617.70001221,-1295.59997559,16.10000038,0.00000000,0.00000000,273.99353027);o++; //object(plasticsgate1) (8)
Object[o]=CreateObject(7657,604.79998779,-1395.69995117,14.10000038,0.00000000,0.00000000,273.99353027);o++; //object(plasticsgate1) (9)
Object[o]=CreateObject(7657,606.40002441,-1415.69995117,14.30000019,0.00000000,0.00000000,273.99353027);o++; //object(plasticsgate1) (10)
Object[o]=CreateObject(7657,654.50000000,-1395.50000000,14.10000038,0.00000000,0.00000000,273.99353027);o++; //object(plasticsgate1) (11)
Object[o]=CreateObject(7657,656.00000000,-1415.40002441,14.30000019,0.00000000,0.00000000,273.99353027);o++; //object(plasticsgate1) (12)
Object[o]=CreateObject(7657,586.70001221,-1529.09997559,16.00000000,0.00000000,0.00000000,179.99353027);o++; //object(plasticsgate1) (13)
Object[o]=CreateObject(7657,651.70001221,-1549.09997559,15.60000038,0.00000000,0.00000000,89.98901367);o++; //object(plasticsgate1) (14)
Object[o]=CreateObject(7657,613.29998779,-1578.50000000,16.70000076,0.00000000,0.00000000,89.98901367);o++; //object(plasticsgate1) (15)
Object[o]=CreateObject(7657,613.09997559,-1595.90002441,16.70000076,0.00000000,0.00000000,89.98901367);o++; //object(plasticsgate1) (16)
Object[o]=CreateObject(7657,618.79998779,-1676.59997559,16.70000076,0.00000000,0.00000000,89.98901367);o++; //object(plasticsgate1) (17)
Object[o]=CreateObject(7657,616.79998779,-1695.59997559,16.29999924,0.00000000,0.00000000,79.98901367);o++; //object(plasticsgate1) (18)
Object[o]=CreateObject(7657,614.00000000,-1713.59997559,14.89999962,0.00000000,0.00000000,81.98901367);o++; //object(plasticsgate1) (19)
Object[o]=CreateObject(7657,612.90002441,-1733.50000000,14.30000019,0.00000000,0.00000000,81.98547363);o++; //object(plasticsgate1) (20)
Object[o]=CreateObject(7657,610.50000000,-1748.19995117,14.19999981,0.00000000,0.00000000,81.98547363);o++; //object(plasticsgate1) (21)
Object[o]=CreateObject(7657,653.40002441,-1766.50000000,14.30000019,0.00000000,0.00000000,161.98547363);o++; //object(plasticsgate1) (22)
Object[o]=CreateObject(7657,679.29998779,-1732.19995117,14.30000019,0.00000000,0.00000000,161.98242188);o++; //object(plasticsgate1) (23)
Object[o]=CreateObject(7657,697.79998779,-1738.09997559,14.10000038,0.00000000,0.00000000,161.98242188);o++; //object(plasticsgate1) (24)
Object[o]=CreateObject(7657,716.29998779,-1745.40002441,15.39999962,0.00000000,0.00000000,161.98242188);o++; //object(plasticsgate1) (25)
Object[o]=CreateObject(7657,733.79998779,-1751.09997559,15.19999981,0.00000000,0.00000000,161.98242188);o++; //object(plasticsgate1) (26)
Object[o]=CreateObject(7657,755.00000000,-1754.30004883,13.50000000,0.00000000,0.00000000,169.98242188);o++; //object(plasticsgate1) (27)
Object[o]=CreateObject(7657,737.50000000,-1792.59997559,14.10000038,0.00000000,0.00000000,169.98046875);o++; //object(plasticsgate1) (28)
Object[o]=CreateObject(7657,787.00000000,-1802.80004883,13.69999981,0.00000000,0.00000000,169.98046875);o++; //object(plasticsgate1) (29)
Object[o]=CreateObject(7657,820.90002441,-1803.19995117,13.89999962,0.00000000,0.00000000,179.98046875);o++; //object(plasticsgate1) (30)
Object[o]=CreateObject(7657,840.09997559,-1803.50000000,13.89999962,0.00000000,0.00000000,179.97802734);o++; //object(plasticsgate1) (31)
Object[o]=CreateObject(7657,810.40002441,-1754.40002441,14.10000038,0.00000000,0.00000000,179.97802734);o++; //object(plasticsgate1) (32)
Object[o]=CreateObject(7657,863.40002441,-1761.19995117,14.30000019,0.00000000,0.00000000,179.97802734);o++; //object(plasticsgate1) (33)
Object[o]=CreateObject(7657,882.90002441,-1762.09997559,14.30000019,0.00000000,0.00000000,172.22802734);o++; //object(plasticsgate1) (34)
Object[o]=CreateObject(7657,902.20001221,-1764.19995117,14.30000019,0.00000000,0.00000000,174.22717285);o++; //object(plasticsgate1) (35)
Object[o]=CreateObject(7657,922.09997559,-1765.90002441,14.30000019,0.00000000,0.00000000,174.22668457);o++; //object(plasticsgate1) (36)
Object[o]=CreateObject(7657,941.70001221,-1768.80004883,14.60000038,0.00000000,0.00000000,170.22668457);o++; //object(plasticsgate1) (37)
Object[o]=CreateObject(7657,961.50000000,-1772.69995117,14.60000038,0.00000000,0.00000000,167.47668457);o++; //object(plasticsgate1) (38)
Object[o]=CreateObject(7657,980.79998779,-1777.40002441,15.00000000,0.00000000,0.00000000,165.47607422);o++; //object(plasticsgate1) (39)
Object[o]=CreateObject(7657,999.70001221,-1782.80004883,14.89999962,0.00000000,0.00000000,161.72607422);o++; //object(plasticsgate1) (40)
Object[o]=CreateObject(7657,1018.50000000,-1788.69995117,14.69999981,0.00000000,0.00000000,159.22424316);o++; //object(plasticsgate1) (41)
Object[o]=CreateObject(7657,1036.00000000,-1796.09997559,14.39999962,0.00000000,0.00000000,149.21936035);o++; //object(plasticsgate1) (42)
Object[o]=CreateObject(7657,1050.90002441,-1808.69995117,14.50000000,0.00000000,0.00000000,129.21630859);o++; //object(plasticsgate1) (43)
Object[o]=CreateObject(7657,1061.00000000,-1824.90002441,14.39999962,0.00000000,0.00000000,111.21566772);o++; //object(plasticsgate1) (44)
Object[o]=CreateObject(7657,1067.50000000,-1843.50000000,14.30000019,0.00000000,0.00000000,105.21453857);o++; //object(plasticsgate1) (45)
Object[o]=CreateObject(7657,1071.40002441,-1860.50000000,14.30000019,0.00000000,0.00000000,99.21057129);o++; //object(plasticsgate1) (46)
Object[o]=CreateObject(7657,944.59997559,-1812.30004883,14.10000038,0.00000000,0.00000000,165.47607422);o++; //object(plasticsgate1) (47)
Object[o]=CreateObject(7657,1004.70001221,-1825.40002441,14.60000038,0.00000000,0.00000000,165.47607422);o++; //object(plasticsgate1) (48)
Object[o]=CreateObject(7657,1022.09997559,-1833.69995117,14.50000000,0.00000000,0.00000000,145.47607422);o++; //object(plasticsgate1) (49)
Object[o]=CreateObject(7657,1030.50000000,-1849.50000000,14.30000019,0.00000000,0.00000000,95.47546387);o++; //object(plasticsgate1) (50)
Object[o]=CreateObject(7657,1032.00000000,-1869.19995117,14.00000000,0.00000000,0.00000000,95.47119141);o++; //object(plasticsgate1) (51)
Object[o]=CreateObject(7657,1033.40002441,-1888.30004883,13.80000019,0.00000000,0.00000000,95.47119141);o++; //object(plasticsgate1) (52)
Object[o]=CreateObject(7657,1035.09997559,-1907.19995117,13.80000019,0.00000000,0.00000000,95.47119141);o++; //object(plasticsgate1) (53)
Object[o]=CreateObject(7657,1036.50000000,-1926.80004883,13.80000019,0.00000000,0.00000000,95.47119141);o++; //object(plasticsgate1) (54)
Object[o]=CreateObject(7657,1036.90002441,-1946.30004883,13.80000019,0.00000000,0.00000000,87.47119141);o++; //object(plasticsgate1) (55)
Object[o]=CreateObject(7657,1036.30004883,-1966.09997559,13.80000019,0.00000000,0.00000000,89.46765137);o++; //object(plasticsgate1) (56)
Object[o]=CreateObject(7657,1035.09997559,-1986.00000000,13.80000019,0.00000000,0.00000000,85.46716309);o++; //object(plasticsgate1) (57)
Object[o]=CreateObject(7657,1033.09997559,-2005.59997559,13.80000019,0.00000000,0.00000000,83.46264648);o++; //object(plasticsgate1) (58)
Object[o]=CreateObject(7657,1030.90002441,-2025.59997559,13.80000019,0.00000000,0.00000000,83.45764160);o++; //object(plasticsgate1) (59)
Object[o]=CreateObject(7657,1027.90002441,-2045.40002441,13.80000019,0.00000000,0.00000000,81.45764160);o++; //object(plasticsgate1) (60)
Object[o]=CreateObject(7657,1025.00000000,-2065.50000000,13.80000019,0.00000000,0.00000000,81.45263672);o++; //object(plasticsgate1) (61)
Object[o]=CreateObject(7657,1084.09997559,-2315.30004883,13.60000038,0.00000000,0.00000000,303.45764160);o++; //object(plasticsgate1) (62)
Object[o]=CreateObject(7657,1095.59997559,-2330.50000000,13.30000019,0.00000000,0.00000000,307.45336914);o++; //object(plasticsgate1) (63)
Object[o]=CreateObject(7657,1107.59997559,-2345.50000000,13.00000000,0.00000000,0.00000000,309.45239258);o++; //object(plasticsgate1) (64)
Object[o]=CreateObject(7657,1120.30004883,-2359.69995117,12.69999981,0.00000000,0.00000000,311.45239258);o++; //object(plasticsgate1) (65)
Object[o]=CreateObject(7657,1134.50000000,-2373.30004883,12.30000019,0.00000000,0.00000000,318.95141602);o++; //object(plasticsgate1) (66)
Object[o]=CreateObject(7657,1149.40002441,-2385.60009766,12.00000000,0.00000000,0.00000000,318.95007324);o++; //object(plasticsgate1) (67)
Object[o]=CreateObject(7657,1164.59997559,-2397.10009766,11.60000038,0.00000000,0.00000000,322.94958496);o++; //object(plasticsgate1) (68)
Object[o]=CreateObject(7657,1181.19995117,-2407.89990234,11.19999981,0.00000000,0.00000000,328.94909668);o++; //object(plasticsgate1) (69)
Object[o]=CreateObject(7657,1198.30004883,-2416.89990234,10.89999962,0.00000000,0.00000000,332.94714355);o++; //object(plasticsgate1) (70)
Object[o]=CreateObject(7657,1216.30004883,-2424.50000000,10.50000000,0.00000000,0.00000000,336.94616699);o++; //object(plasticsgate1) (71)
Object[o]=CreateObject(7657,1235.00000000,-2431.69995117,10.10000038,0.00000000,0.00000000,340.94519043);o++; //object(plasticsgate1) (72)
Object[o]=CreateObject(7657,1253.80004883,-2436.19995117,9.69999981,0.00000000,0.00000000,346.94421387);o++; //object(plasticsgate1) (73)
Object[o]=CreateObject(7657,1272.69995117,-2439.39990234,9.30000019,0.00000000,0.00000000,350.94274902);o++; //object(plasticsgate1) (74)
Object[o]=CreateObject(7657,1291.50000000,-2440.30004883,8.69999981,0.00000000,0.00000000,352.94177246);o++; //object(plasticsgate1) (75)
Object[o]=CreateObject(7657,1311.30004883,-2440.89990234,8.50000000,0.00000000,0.00000000,0.94128418);o++; //object(plasticsgate1) (76)
Object[o]=CreateObject(7657,1329.09997559,-2440.50000000,8.50000000,0.00000000,0.00000000,0.93933105);o++; //object(plasticsgate1) (77)
Object[o]=CreateObject(7657,1339.50000000,-2449.89990234,8.50000000,0.00000000,0.00000000,270.93933105);o++; //object(plasticsgate1) (78)
Object[o]=CreateObject(7657,1340.19995117,-2468.50000000,8.39999962,0.00000000,0.00000000,270.93383789);o++; //object(plasticsgate1) (79)
Object[o]=CreateObject(7657,1336.19995117,-2508.30004883,14.10000038,0.00000000,0.00000000,0.93933105);o++; //object(plasticsgate1) (80)
Object[o]=CreateObject(7657,1354.69995117,-2507.00000000,13.69999981,0.00000000,0.00000000,0.93933105);o++; //object(plasticsgate1) (81)
Object[o]=CreateObject(7657,1444.30004883,-2705.60009766,14.30000019,0.00000000,0.00000000,262.93933105);o++; //object(plasticsgate1) (82)
Object[o]=CreateObject(7657,1442.40002441,-2725.00000000,12.19999981,0.00000000,10.00000000,262.93579102);o++; //object(plasticsgate1) (83)
Object[o]=CreateObject(7657,1442.19995117,-2743.00000000,7.90000010,0.00000000,9.99755859,262.93579102);o++; //object(plasticsgate1) (84)
Object[o]=CreateObject(7657,1441.09997559,-2761.00000000,4.09999990,0.00000000,9.99755859,262.93579102);o++; //object(plasticsgate1) (85)
Object[o]=CreateObject(7657,2186.00000000,-2495.39990234,14.10000038,0.00000000,0.00000000,268.93579102);o++; //object(plasticsgate1) (86)
Object[o]=CreateObject(7657,2177.10009766,-2359.89990234,14.10000038,0.00000000,0.00000000,48.93432617);o++; //object(plasticsgate1) (87)
Object[o]=CreateObject(7657,2287.19995117,-2302.50000000,14.10000038,0.00000000,0.00000000,224.93310547);o++; //object(plasticsgate1) (88)
Object[o]=CreateObject(7657,2286.19995117,-2252.60009766,14.10000038,0.00000000,0.00000000,44.92858887);o++; //object(plasticsgate1) (89)
Object[o]=CreateObject(7657,2274.60009766,-2265.00000000,14.69999981,0.00000000,0.00000000,44.92858887);o++; //object(plasticsgate1) (90)
Object[o]=CreateObject(7657,2353.10009766,-2187.50000000,14.30000019,0.00000000,0.00000000,38.92858887);o++; //object(plasticsgate1) (91)
Object[o]=CreateObject(7657,2368.69995117,-2175.10009766,14.30000019,0.00000000,0.00000000,38.92456055);o++; //object(plasticsgate1) (92)
Object[o]=CreateObject(7657,2380.19995117,-2168.10009766,14.30000019,0.00000000,0.00000000,28.92456055);o++; //object(plasticsgate1) (93)
Object[o]=CreateObject(7657,2397.69995117,-2159.10009766,14.30000019,0.00000000,0.00000000,22.92150879);o++; //object(plasticsgate1) (94)
Object[o]=CreateObject(7657,2415.69995117,-2150.19995117,14.30000019,0.00000000,0.00000000,26.91748047);o++; //object(plasticsgate1) (95)
Object[o]=CreateObject(7657,2714.00000000,-2145.10009766,11.60000038,0.00000000,0.00000000,358.92150879);o++; //object(plasticsgate1) (96)
Object[o]=CreateObject(7657,2733.80004883,-2143.80004883,11.80000019,0.00000000,0.00000000,6.91784668);o++; //object(plasticsgate1) (97)
Object[o]=CreateObject(7657,2753.30004883,-2139.60009766,11.80000019,0.00000000,0.00000000,16.91589355);o++; //object(plasticsgate1) (98)
Object[o]=CreateObject(7657,2771.19995117,-2130.80004883,11.80000019,0.00000000,0.00000000,34.91345215);o++; //object(plasticsgate1) (99)
Object[o]=CreateObject(7657,2786.69995117,-2117.80004883,11.80000019,0.00000000,0.00000000,44.90905762);o++; //object(plasticsgate1) (100)
Object[o]=CreateObject(7657,2798.69995117,-2102.39990234,11.80000019,0.00000000,0.00000000,54.90661621);o++; //object(plasticsgate1) (101)
Object[o]=CreateObject(7657,2807.30004883,-2084.89990234,11.80000019,0.00000000,0.00000000,70.65417480);o++; //object(plasticsgate1) (102)
Object[o]=CreateObject(7657,2811.50000000,-2065.69995117,11.80000019,0.00000000,0.00000000,84.89929199);o++; //object(plasticsgate1) (103)
Object[o]=CreateObject(7657,2811.89990234,-2046.40002441,11.69999981,0.00000000,0.00000000,90.89685059);o++; //object(plasticsgate1) (105)
Object[o]=CreateObject(7657,2812.89990234,-1982.69995117,11.80000019,0.00000000,0.00000000,90.89538574);o++; //object(plasticsgate1) (106)
Object[o]=CreateObject(7657,2812.89990234,-1965.50000000,11.39999962,0.00000000,0.00000000,90.89538574);o++; //object(plasticsgate1) (107)
Object[o]=CreateObject(7657,2812.89990234,-1945.40002441,11.39999962,0.00000000,0.00000000,90.89538574);o++; //object(plasticsgate1) (108)
Object[o]=CreateObject(7657,2813.00000000,-1925.19995117,11.80000019,0.00000000,0.00000000,90.89538574);o++; //object(plasticsgate1) (109)
Object[o]=CreateObject(7657,2813.30004883,-1905.40002441,11.80000019,0.00000000,0.00000000,90.89538574);o++; //object(plasticsgate1) (110)
Object[o]=CreateObject(7657,2812.19995117,-1885.69995117,11.60000038,0.00000000,0.00000000,90.89538574);o++; //object(plasticsgate1) (111)
Object[o]=CreateObject(7657,2813.69995117,-1849.69995117,11.80000019,0.00000000,0.00000000,86.89538574);o++; //object(plasticsgate1) (112)
Object[o]=CreateObject(7657,2846.19995117,-1658.40002441,11.39999962,0.00000000,0.00000000,71.39086914);o++; //object(plasticsgate1) (113)
Object[o]=CreateObject(7657,2852.30004883,-1639.90002441,11.80000019,0.00000000,0.00000000,71.38916016);o++; //object(plasticsgate1) (114)
Object[o]=CreateObject(7657,2858.69995117,-1621.40002441,11.80000019,0.00000000,0.00000000,71.38916016);o++; //object(plasticsgate1) (115)
Object[o]=CreateObject(8150,2877.00000000,-1551.09997559,13.00000000,0.00000000,0.00000000,76.00000000);o++; //object(vgsselecfence04) (8)
Object[o]=CreateObject(8150,2892.50000000,-1428.40002441,13.19999981,0.00000000,0.00000000,90.00000000);o++; //object(vgsselecfence04) (9)
Object[o]=CreateObject(8150,2882.19995117,-1306.40002441,13.00000000,0.00000000,0.00000000,99.00000000);o++; //object(vgsselecfence04) (10)
Object[o]=CreateObject(8150,2859.19995117,-1085.19995117,13.00000000,0.00000000,0.00000000,90.00000000);o++; //object(vgsselecfence04) (11)
Object[o]=CreateObject(8150,2861.39990234,-964.50000000,13.00000000,0.00000000,0.00000000,268.00000000);o++; //object(vgsselecfence04) (12)
Object[o]=CreateObject(8150,2864.60009766,-840.40002441,13.00000000,0.00000000,0.00000000,90.00000000);o++; //object(vgsselecfence04) (13)
Object[o]=CreateObject(8150,2864.39990234,-714.50000000,12.89999962,0.00000000,0.00000000,270.00000000);o++; //object(vgsselecfence04) (14)
Object[o]=CreateObject(7657,2853.69995117,-653.40002441,11.60000038,0.00000000,0.00000000,0.00000000);o++; //object(plasticsgate1) (116)
Object[o]=CreateObject(7657,2836.80004883,-653.59997559,11.69999981,0.00000000,0.00000000,0.00000000);o++; //object(plasticsgate1) (117)
Object[o]=CreateObject(7657,2826.10009766,-654.90002441,20.50000000,0.00000000,50.00000000,0.00000000);o++; //object(plasticsgate1) (118)
ObjectsLoaded=o;//thats why i added the o++; after each object, to sum up the total amount. later its vital.
add this aswell:
Код:
new string[128];
format(string,sizeof(string),"Loaded Objects:%d",ObjectsLoaded);
SendClientMessageToAll(0xffffffff,string);
the script will inform you about the objects amount, when you unload a filterscript using the array pointing to the returned object IDs, you can erase them @ unloading the FS:
Код:
public OnFilterScriptExit()
{
for(new o=0;o<ObjectLoaded;o++)
{
DeleteObject(Object[o]);
}
return 1;
}
i hope i didnt forget anything, but the concept should be clear.. btw, by using incognitos streamer plugin, the object amount can exceed any size. you could load 10 filterscripts which adds 1000's objects!
Reply
#7

but he cant see them at all.. creating a reference wont help him.. its got something to do with where hes adding them for suree...
Reply
#8

it can be relevant. if you load a filterscript (creating 100 objects) ten times, then they shold show up. but when reloading a filterscript ten times, it will already exceed 1000 objects, what makes it impossible to load another new filterscript (creating new objects).
always make sure that your script(s) clean up their used memory @ unloading. by using a IsValidObject() in combination with a LoadedObjects-loop, i can use lots of filterscripts, each handling a dynamic amount of objects (fireworks, pirateship, object editor, weed, spikes, mines, and one more for gamemode objects).
Reply
#9

But how is it relevant in this situation ? it still doesn explain his objects not showing up...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)