02.12.2012, 15:46
So I mapped a few things, and when I put it in my gamemode on OnGameModeInit, it compiles, but when I load it on my server, it says this Warning: bad object model ID (629877) and a few objects do not spawn, do you know why?
pawn Код:
public OnGameModeInit()
{
SetGameModeText("Austin's Test Script");
ShowPlayerMarkers(1);
ShowNameTags(1);
AllowAdminTeleport(1);
//vehicles LSPD
AddStaticVehicleEx(411,1603.40002441,-1606.30004883,13.19999981,126.00000000,6,6,15); //Infernus
AddStaticVehicleEx(411,1602.50000000,-1611.90002441,13.30000019,128.00000000,6,6,15); //Infernus
AddStaticVehicleEx(415,1602.50000000,-1616.30004883,13.30000019,124.00000000,-1,-1,15); //Cheetah
AddStaticVehicleEx(522,1535.59997559,-1665.50000000,13.00000000,88.00000000,-1,-1,15); //NRG-500
AddStaticVehicleEx(522,1535.59997559,-1667.30004883,13.00000000,90.00000000,-1,-1,15); //NRG-500
AddStaticVehicleEx(406,1584.59997559,-1611.09997559,15.10000038,180.00000000,-1,-1,15); //Dumper
//Player Classes
AddPlayerClass(294,1544.7137,-1675.6057,13.5589,89.8978,0,0,0,0,0,0); // LSPD 294 Spawn
AddPlayerClass(165,1544.7137,-1675.6057,13.5589,89.8978,0,0,0,0,0,0); // LSPD 165 Spawn
//Objects
CreateObject(2933,1539.09997559,-1636.40002441,14.10000038,0.00000000,0.00000000,270.25000000); //object(pol_comp_gate) (1)
CreateObject(2933,1539.40002441,-1618.90002441,14.10000038,0.00000000,0.00000000,270.00000000); //object(pol_comp_gate) (2)
CreateObject(970,1541.50000000,-1623.30004883,12.89999962,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (1)
CreateObject(2933,1539.09997559,-1645.19995117,14.10000038,0.00000000,0.00000000,269.99719238); //object(pol_comp_gate) (3)
CreateObject(2933,1539.00000000,-1648.80004883,14.10000038,0.00000000,0.00000000,269.25000000); //object(pol_comp_gate) (4)
CreateObject(3975,1964.80004883,-636.40002441,63.00000000,0.00000000,0.00000000,0.00000000); //object(policest01_lan) (1)
CreateObject(10821,392.29998779,-1678.09997559,95.19999695,0.00000000,0.00000000,0.00000000); //object(baybridge2_sfse) (1)
CreateObject(971,2506.50000000,-1460.59997559,25.10000038,2.00000000,0.00000000,90.00000000); //object(subwaygate) (1)
CreateObject(10281,2507.80004883,-1462.09997559,29.60000038,0.00000000,328.00000000,84.00000000); //object(michsign_sfe) (1)
CreateObject(971,2506.39990234,-1451.80004883,24.10000038,2.00170898,179.99993896,90.00100708); //object(subwaygate) (2)
CreateObject(8615,2474.50000000,-1464.19995117,25.70000076,0.00000000,0.00000000,0.00000000); //object(vgssstairs04_lvs) (1)
CreateObject(1764,2510.69995117,-1472.00000000,23.00000000,0.00000000,0.00000000,138.00000000); //object(low_couch_2) (2)
CreateObject(947,2512.19995117,-1455.40002441,25.20000076,0.00000000,0.00000000,180.00000000); //object(bskballhub_lax01) (1)
CreateObject(971,2446.39990234,-1460.69995117,26.29999924,1.99951172,0.00000000,90.00000000); //object(subwaygate) (3)
CreateObject(854,2516.10009766,-1474.50000000,23.20000076,0.00000000,0.00000000,0.00000000); //object(cj_urb_rub_3b) (1)
CreateObject(1764,2509.30004883,-1469.30004883,23.00000000,0.00000000,0.00000000,33.99914551); //object(low_couch_2) (3)
CreateObject(1516,2511.39990234,-1470.09997559,23.00000000,0.00000000,0.00000000,0.00000000); //object(dyn_table_03) (1)
CreateObject(13752,1122.00000000,-2483.00000000,-12.10000038,0.00000000,0.00000000,229.99877930); //object(cuntebridge01) (1)
CreateObject(6976,1122.69921875,-2420.79980469,1.10000002,0.00000000,0.00000000,139.99877930); //object(shamheliprt04) (1)
CreateObject(3749,1063.30004883,-2554.19995117,17.89999962,0.00000000,0.00000000,319.99328613); //object(clubgate01_lax) (1)
CreateObject(13752,1060.29980469,-2559.19921875,-12.11000061,0.00000000,0.00000000,49.99877930); //object(cuntebridge01) (2)
CreateObject(6280,1007.89941406,-2654.59960938,10.39999962,0.00000000,0.00000000,141.24572754); //object(beach01_law2) (1)
CreateObject(3484,911.50000000,-2679.50000000,22.00000000,0.00000000,0.00000000,137.49890137); //object(vegasxrexhse03) (1)
CreateObject(3501,968.20001221,-2684.39990234,18.00000000,0.00000000,0.00000000,231.99829102); //object(vgsxrefpartm1) (1)
CreateObject(16114,1014.59997559,-2569.50000000,2.70000005,0.00000000,0.00000000,260.00000000); //object(des_rockgp2_) (1)
CreateObject(16114,1014.20001221,-2553.60009766,-0.50000000,0.00000000,0.00000000,59.99694824); //object(des_rockgp2_) (2)
CreateObject(16114,996.70001221,-2558.39990234,2.70000005,0.00000000,0.00000000,257.99694824); //object(des_rockgp2_) (3)
CreateObject(16114,985.70001221,-2552.39990234,-0.50000000,0.00000000,0.00000000,139.99633789); //object(des_rockgp2_) (4)
CreateObject(16114,975.70001221,-2538.80004883,-0.50000000,0.00000000,0.00000000,139.99328613); //object(des_rockgp2_) (5)
CreateObject(16114,1053.80004883,-2607.89990234,-0.50000000,0.00000000,0.00000000,67.99633789); //object(des_rockgp2_) (6)
CreateObject(16114,1062.09997559,-2601.00000000,2.70000005,0.00000000,0.00000000,63.99694824); //object(des_rockgp2_) (7)
CreateObject(16114,1072.50000000,-2596.09960938,-8.10000038,0.00000000,0.00000000,237.99133301); //object(des_rockgp2_) (8)
CreateObject(16114,1135.19995117,-2631.10009766,-8.39999962,0.00000000,0.00000000,65.23681641); //object(des_rockgp2_) (9)
CreateObject(16114,1078.00000000,-2600.00000000,-2.59999990,0.00000000,347.99743652,96.98730469); //object(des_rockgp2_) (11)
CreateObject(6356,935.40002441,-2567.00000000,2.79999995,330.96862793,86.23718262,139.33166504); //object(sunset06_law2) (2)
CreateObject(16114,948.00000000,-2568.00000000,-0.50000000,350.09832764,8.12173462,153.39361572); //object(des_rockgp2_) (14)
CreateObject(16114,1036.80004883,-2593.19995117,-19.20000076,0.00000000,0.00000000,237.99133301); //object(des_rockgp2_) (15)
CreateObject(6356,908.20001221,-2600.30004883,4.00000000,331.79260254,84.16076660,138.08227539); //object(sunset06_law2) (5)
CreateObject(6356,896.40002441,-2655.69995117,3.70000005,332.52868652,84.33654785,135.66467285); //object(sunset06_law2) (6)
CreateObject(16114,897.29998779,-2663.10009766,-0.50000000,0.00000000,0.00000000,163.74023438); //object(des_rockgp2_) (16)
CreateObject(16114,888.69921875,-2643.19921875,-0.50000000,0.00000000,0.00000000,161.73522949); //object(des_rockgp2_) (17)
CreateObject(6356,1124.50000000,-2682.60009766,0.89999998,321.80053711,81.41418457,322.57250977); //object(sunset06_law2) (7)
CreateObject(6356,1097.80004883,-2718.30004883,3.50000000,328.61206055,83.35327148,317.18066406); //object(sunset06_law2) (8)
CreateObject(6356,1070.40002441,-2750.60009766,4.00000000,329.58813477,83.60644531,317.81066895); //object(sunset06_law2) (9)
CreateObject(16114,1044.29980469,-2772.29980469,-7.80000019,0.00000000,0.00000000,165.99243164); //object(des_rockgp2_) (18)
CreateObject(16114,1029.09997559,-2766.60009766,-7.80000019,0.00000000,0.00000000,61.99243164); //object(des_rockgp2_) (19)
CreateObject(16114,1023.79998779,-2758.80004883,-8.10000038,0.00000000,0.00000000,65.99035645); //object(des_rockgp2_) (20)
CreateObject(6356,1004.59997559,-2757.30004883,4.09999990,330.31674194,83.79248047,227.90043640); //object(sunset06_law2) (11)
CreateObject(6356,972.00000000,-2730.79980469,4.09999990,330.31494141,83.78723145,227.89489746); //object(sunset06_law2) (12)
CreateObject(6356,939.79998779,-2704.69995117,4.09999990,330.31494141,83.78723145,227.90039062); //object(sunset06_law2) (13)
CreateObject(16114,942.70001221,-2689.69995117,-7.40000010,0.00000000,0.00000000,269.99328613); //object(des_rockgp2_) (21)
CreateObject(16114,937.90002441,-2693.50000000,-7.40000010,0.00000000,0.00000000,291.98901367); //object(des_rockgp2_) (22)
CreateObject(16114,931.09997559,-2707.39990234,-5.90000010,0.00000000,0.00000000,265.98364258); //object(des_rockgp2_) (23)
CreateObject(16114,914.40002441,-2704.89990234,-5.19999981,0.00000000,0.00000000,265.97900391); //object(des_rockgp2_) (24)
CreateObject(16114,902.79998779,-2693.10009766,-5.69999981,0.00000000,0.00000000,265.97900391); //object(des_rockgp2_) (25)
CreateObject(3607,1039.69921875,-2727.79980469,21.20000076,0.00000000,0.00000000,181.99951172); //object(bevman2_law2) (1)
CreateObject(5401,1001.00000000,-2721.59960938,17.00000000,0.00000000,0.00000000,327.99682617); //object(laegarages1nw) (1)
CreateObject(971,1068.00000000,-2556.00000000,15.50000000,0.00000000,0.00000000,139.50000000); //object(subwaygate) (2)
CreateObject(971,1061.29980469,-2550.29980469,15.50000000,0.00000000,0.00000000,139.49340820); //object(subwaygate) (3)
CreateObject(629877,1135.19921875,-2458.19921875,15.60000038,0.00000000,0.00000000,0.00000000); //object(sf_rooflite) (11)
CreateObject(3877,1145.59960938,-2467.00000000,15.60000038,0.00000000,0.00000000,0.00000000); //object(sf_rooflite) (12)
CreateObject(3877,1116.39941406,-2501.69921875,15.60000038,0.00000000,0.00000000,0.00000000); //object(sf_rooflite) (13)
CreateObject(3877,1034.59997559,-2599.10009766,15.60000038,0.00000000,0.00000000,0.00000000); //object(sf_rooflite) (14)
CreateObject(3877,1023.90002441,-2590.69995117,15.60000038,0.00000000,0.00000000,0.00000000); //object(sf_rooflite) (15)
CreateObject(3115,930.90002441,-2575.50000000,14.10000038,0.00000000,0.00000000,320.00000000); //object(carrier_lift1_sfse) (1)
CreateObject(2774,919.40002441,-2575.60009766,1.29999995,0.00000000,0.00000000,0.00000000); //object(cj_airp_pillars) (1)
CreateObject(2774,928.90002441,-2564.00000000,1.29999995,0.00000000,0.00000000,0.00000000); //object(cj_airp_pillars) (2)
CreateObject(3877,928.50000000,-2562.69995117,16.10000038,0.00000000,0.00000000,0.00000000); //object(sf_rooflite) (16)
CreateObject(3877,918.09997559,-2575.60009766,16.10000038,0.00000000,0.00000000,0.00000000); //object(sf_rooflite) (17)
CreateObject(9247,1067.79980469,-2714.89941406,21.29999924,0.00000000,0.00000000,36.99645996); //object(hrbrmstr_sfn01) (1)
CreateObject(3877,1047.19995117,-2584.30004883,15.60000038,0.00000000,0.00000000,0.00000000); //object(sf_rooflite) (1)
CreateObject(3877,1076.50000000,-2528.00000000,15.60000038,0.00000000,0.00000000,0.00000000); //object(sf_rooflite) (3)
CreateObject(3877,1086.89941406,-2537.00000000,15.60000038,0.00000000,0.00000000,0.00000000); //object(sf_rooflite) (4)
CreateObject(3877,1066.00000000,-2540.30004883,15.60000038,0.00000000,0.00000000,0.00000000); //object(sf_rooflite) (5)
CreateObject(3877,1036.80004883,-2575.39990234,15.60000038,0.00000000,0.00000000,0.00000000); //object(sf_rooflite) (6)
CreateObject(3877,1076.39941406,-2549.79980469,15.60000038,0.00000000,0.00000000,0.00000000); //object(sf_rooflite) (7)
CreateObject(3877,1106.00000000,-2514.29980469,15.60000038,0.00000000,0.00000000,0.00000000); //object(sf_rooflite) (8)
CreateObject(3877,1095.29980469,-2505.29980469,15.60000038,0.00000000,0.00000000,0.00000000); //object(sf_rooflite) (9)
CreateObject(3877,1106.00000000,-2493.00000000,15.60000038,0.00000000,0.00000000,0.00000000); //object(sf_rooflite) (10)
CreateObject(16114,1036.69995117,-2775.80004883,-7.80000019,0.00000000,0.00000000,165.99243164); //object(des_rockgp2_) (18)
CreateObject(16114,916.29998779,-2705.69995117,-7.80000019,0.00000000,0.00000000,165.99243164); //object(des_rockgp2_) (18)
CreateObject(16114,922.59997559,-2698.80004883,-7.80000019,0.00000000,0.00000000,165.99243164); //object(des_rockgp2_) (18)
CreateObject(16114,909.59997559,-2711.00000000,-7.80000019,0.00000000,0.00000000,165.99243164); //object(des_rockgp2_) (18)
CreateObject(16114,949.00000000,-2708.00000000,0.00000000,0.00000000,358.00000000,57.73522949); //object(des_rockgp2_) (17)
CreateObject(16114,916.59997559,-2610.80004883,2.79999995,0.00000000,0.00000000,161.73522949); //object(des_rockgp2_) (17)
CreateObject(3606,1082.09997559,-2704.39990234,17.70000076,357.99499512,0.00000000,226.24694824); //object(bevbrkhus1) (1)
CreateObject(3753,921.50000000,-2558.69995117,4.90000010,0.00000000,0.00000000,49.25000000); //object(dockwall_las2) (1)
CreateObject(10841,938.00000000,-2554.69995117,5.90000010,358.00115967,177.99884033,51.68005371); //object(drydock1_sfse01) (1)
CreateObject(10841,926.40002441,-2582.80004883,5.90000010,358.00122070,182.49768066,320.33679199); //object(drydock1_sfse01) (2)
CreateObject(16133,957.70001221,-2546.50000000,6.40000010,0.00000000,0.00000000,132.00000000); //object(des_rockgp2_18) (1)
CreateObject(16114,1133.00000000,-2740.19995117,0.00000000,0.00000000,1.99951172,9.98803711); //object(des_rockgp2_) (11)
CreateObject(13813,1135.30004883,-2596.69995117,-4.40000010,0.00000000,357.99499512,179.99450684); //object(cegraveblok03e) (1)
CreateObject(16114,1105.09997559,-2620.89990234,-17.60000038,0.00000000,0.00000000,65.23681641); //object(des_rockgp2_) (9)
CreateObject(16114,1097.90002441,-2615.89990234,-18.89999962,0.00000000,0.00000000,65.23681641); //object(des_rockgp2_) (9)
CreateObject(16114,1096.59997559,-2619.30004883,-17.79999924,0.00000000,0.00000000,65.23681641); //object(des_rockgp2_) (9)
CreateObject(16114,1100.09997559,-2619.00000000,-18.20000076,0.00000000,0.00000000,65.23681641); //object(des_rockgp2_) (9)
CreateObject(16114,1107.59997559,-2623.69995117,-17.60000038,0.00000000,0.00000000,65.23681641); //object(des_rockgp2_) (9)
CreateObject(16114,1111.19995117,-2623.80004883,-17.00000000,0.00000000,0.00000000,65.23681641); //object(des_rockgp2_) (9)
CreateObject(16114,1120.90002441,-2623.30004883,-17.39999962,0.00000000,0.00000000,65.23681641); //object(des_rockgp2_) (9)
CreateObject(7301,1064.90002441,-2551.19995117,20.29999924,0.00000000,2.00000000,272.00000000); //object(vgsn_addboard03) (2)
CreateObject(1337,1120.40917969,-2603.96093750,10.02792358,0.00000000,0.00000000,0.00000000); //object(binnt07_la) (1)
CreateObject(3598,162.30000305,134.00000000,472.79998779,0.00000000,0.00000000,0.00000000); //object(hillhouse01_la) (1)
CreateObject(3598,126.90000153,100.59999847,480.79998779,0.00000000,0.00000000,0.00000000); //object(hillhouse01_la) (2)
return 1;
}