Mapping problem (Createobject)
#1

Hello, im a new scripter and i want to add:
Код:
CreateObject(4526,-2729.42260742,2358.07934570,72.91472626,0.00000000,0.00000000,228.98997498); //object(sfse_roadblock5) (1)
CreateObject(1233,-2733.75585938,2376.93774414,72.68765259,0.00000000,0.00000000,268.68994141); //object(noparkingsign1) (1)
CreateObject(3265,-2734.01245117,2373.18408203,71.02814484,0.00000000,0.00000000,248.83996582); //object(privatesign4) (1)
CreateObject(3264,-2726.14575195,2341.57836914,71.02343750,0.00000000,0.00000000,322.28500366); //object(privatesign3) (1)
CreateObject(1358,2485.60546875,-1669.49682617,13.53949356,0.00000000,322.28500366,346.10501099); //object(cj_skip_rubbish) (1)
CreateObject(2614,2517.70214844,-1687.84277344,13.35324192,0.00000000,0.00000000,230.97497559); //object(cj_us_flag) (1)
CreateObject(5400,2452.88867188,-1666.87792969,12.69705963,0.00000000,0.00000000,0.00000000); //object(laeskatetube1) (2)
CreateObject(3594,2406.01879883,-1659.56823730,13.01398945,0.00000000,334.19500732,350.07501221); //object(la_fuckcar1) (2)
CreateObject(1792,2407.72485352,-1654.57934570,13.06424713,0.00000000,79.40002441,3.97000122); //object(swank_tv_1) (1)
CreateObject(1264,2411.99584961,-1658.40783691,13.50486469,0.00000000,0.00000000,0.00000000); //object(blackbag1) (1)
CreateObject(1264,2411.16015625,-1660.58288574,13.53639126,0.00000000,59.55001831,298.46499634); //object(blackbag1) (2)
CreateObject(1333,2410.08374023,-1659.07812500,13.98631477,0.00000000,85.35501099,326.25500488); //object(binnt03_la) (1)
CreateObject(2677,2409.87915039,-1656.44934082,13.33626461,0.00000000,0.00000000,0.00000000); //object(proc_rubbish_7) (1)
CreateObject(1471,2412.23193359,-1656.17138672,13.22813892,0.00000000,94.01000977,1.98501587); //object(dyn_porch_2) (1)
CreateObject(18248,2470.59472656,-1671.25292969,20.38845444,0.00000000,0.00000000,0.00000000); //object(cuntwjunk01) (2)
CreateObject(2975,2425.78857422,-1664.47875977,12.53905392,0.00000000,304.41992188,91.31002808); //object(k_cargo3) (1)
CreateObject(1008,2425.53637695,-1660.29687500,13.06424713,0.00000000,0.00000000,0.00000000); //object(nto_b_l) (1)
CreateObject(13604,2446.34448242,-1665.04125977,14.17913342,0.00000000,0.00000000,0.00000000); //object(kickramp05) (1)
CreateObject(16367,2480.50195312,-1680.96484375,14.09047318,0.00000000,0.00000000,0.00000000); //object(des_quayramp) (1)
CreateObject(8613,2498.55273438,-1651.73693848,16.70736885,0.00000000,358.01501465,173.40997314); //object(vgssstairs03_lvs) (1)
CreateObject(5152,2496.09106445,-1657.15136719,19.09524155,0.00000000,0.00000000,103.93493652); //object(stuntramp1_las2) (1)
CreateObject(16401,2595.19702148,-1659.37451172,1.11337852,0.00000000,0.00000000,304.41998291); //object(desn2_peckjump) (1)
CreateObject(16401,2599.23486328,-1664.92443848,0.77911377,0.00000000,0.00000000,123.78492737); //object(desn2_peckjump) (2)
CreateObject(13590,2573.47875977,-1676.80590820,3.09043837,0.00000000,0.00000000,0.00000000); //object(kickbus04) (1)
CreateObject(18451,2588.59570312,-1687.53076172,1.15305138,0.00000000,0.00000000,33.74499512); //object(cs_oldcarjmp) (1)
CreateObject(16367,2586.05053711,-1668.26611328,2.66594076,0.00000000,0.00000000,21.83499146); //object(des_quayramp) (2)
CreateObject(3083,2590.57788086,-1674.02551270,0.71039772,0.00000000,63.52001953,143.63494873); //object(md_poster) (3)
CreateObject(910,2594.58178711,-1674.94689941,2.02118301,0.00000000,93.29501343,117.11505127); //object(bust_cabinet_4) (1)
CreateObject(3073,2587.18261719,-1681.85156250,2.30974197,0.00000000,0.00000000,298.46499634); //object(kmb_container_broke) (1)
CreateObject(926,2594.71435547,-1674.04284668,1.49984670,0.00000000,0.00000000,0.00000000); //object(rubbish_box2) (1)
CreateObject(1265,2595.15673828,-1674.55285645,1.40316498,0.00000000,0.00000000,0.00000000); //object(blackbag2) (1)
CreateObject(13637,2606.88281250,-1694.03369141,2.72832131,0.00000000,0.00000000,87.34002686); //object(tuberamp) (1)
CreateObject(16784,2612.24975586,-1694.06945801,0.75710440,0.00000000,0.00000000,0.00000000); //object(des_alphabit13) (1)

/*
To my GM in PWN, how can i add it?
Reply
#2

put them all under OnGameModeInit if the number exceeds the limit (254) you need a object streamer
Reply
#3

C:\Users\MadLeo\Desktop\ser 0.3\gamemodes\WSRP.pwn(69637) : error 021: symbol already defined: "OnGameModeInit"
C:\Users\MadLeo\Desktop\ser 0.3\gamemodes\WSRP.pwn(69671) : warning 209: function "OnGameModeInit" should return a value
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.


Reply
#4

Quote:
Originally Posted by madfire
C:\Users\MadLeo\Desktop\ser 0.3\gamemodes\WSRP.pwn(69637) : error 021: symbol already defined: "OnGameModeInit"
Looks like you already have somewhere OnGameModeInit in your pwn file, so you need to put it there

Quote:
Originally Posted by madfire
C:\Users\MadLeo\Desktop\ser 0.3\gamemodes\WSRP.pwn(69671) : warning 209: function "OnGameModeInit" should return a value
Just remove all returns in OnGameModeInit
Reply
#5

So i putted in first place, but it dosnt appear while in game, i tried /upload and /gmx
Reply
#6

pawn Код:
public OnGameModeInit()
{
CreateObject(4526,-2729.42260742,2358.07934570,72.91472626,0.00000000,0.00000000,228.98997498); //object(sfse_roadblock5) (1)
CreateObject(1233,-2733.75585938,2376.93774414,72.68765259,0.00000000,0.00000000,268.68994141); //object(noparkingsign1) (1)
CreateObject(3265,-2734.01245117,2373.18408203,71.02814484,0.00000000,0.00000000,248.83996582); //object(privatesign4) (1)
CreateObject(3264,-2726.14575195,2341.57836914,71.02343750,0.00000000,0.00000000,322.28500366); //object(privatesign3) (1)
CreateObject(1358,2485.60546875,-1669.49682617,13.53949356,0.00000000,322.28500366,346.10501099); //object(cj_skip_rubbish) (1)
CreateObject(2614,2517.70214844,-1687.84277344,13.35324192,0.00000000,0.00000000,230.97497559); //object(cj_us_flag) (1)
CreateObject(5400,2452.88867188,-1666.87792969,12.69705963,0.00000000,0.00000000,0.00000000); //object(laeskatetube1) (2)
CreateObject(3594,2406.01879883,-1659.56823730,13.01398945,0.00000000,334.19500732,350.07501221); //object(la_fuckcar1) (2)
CreateObject(1792,2407.72485352,-1654.57934570,13.06424713,0.00000000,79.40002441,3.97000122); //object(swank_tv_1) (1)
CreateObject(1264,2411.99584961,-1658.40783691,13.50486469,0.00000000,0.00000000,0.00000000); //object(blackbag1) (1)
CreateObject(1264,2411.16015625,-1660.58288574,13.53639126,0.00000000,59.55001831,298.46499634); //object(blackbag1) (2)
CreateObject(1333,2410.08374023,-1659.07812500,13.98631477,0.00000000,85.35501099,326.25500488); //object(binnt03_la) (1)
CreateObject(2677,2409.87915039,-1656.44934082,13.33626461,0.00000000,0.00000000,0.00000000); //object(proc_rubbish_7) (1)
CreateObject(1471,2412.23193359,-1656.17138672,13.22813892,0.00000000,94.01000977,1.98501587); //object(dyn_porch_2) (1)
CreateObject(18248,2470.59472656,-1671.25292969,20.38845444,0.00000000,0.00000000,0.00000000); //object(cuntwjunk01) (2)
CreateObject(2975,2425.78857422,-1664.47875977,12.53905392,0.00000000,304.41992188,91.31002808); //object(k_cargo3) (1)
CreateObject(1008,2425.53637695,-1660.29687500,13.06424713,0.00000000,0.00000000,0.00000000); //object(nto_b_l) (1)
CreateObject(13604,2446.34448242,-1665.04125977,14.17913342,0.00000000,0.00000000,0.00000000); //object(kickramp05) (1)
CreateObject(16367,2480.50195312,-1680.96484375,14.09047318,0.00000000,0.00000000,0.00000000); //object(des_quayramp) (1)
CreateObject(8613,2498.55273438,-1651.73693848,16.70736885,0.00000000,358.01501465,173.40997314); //object(vgssstairs03_lvs) (1)
CreateObject(5152,2496.09106445,-1657.15136719,19.09524155,0.00000000,0.00000000,103.93493652); //object(stuntramp1_las2) (1)
CreateObject(16401,2595.19702148,-1659.37451172,1.11337852,0.00000000,0.00000000,304.41998291); //object(desn2_peckjump) (1)
CreateObject(16401,2599.23486328,-1664.92443848,0.77911377,0.00000000,0.00000000,123.78492737); //object(desn2_peckjump) (2)
CreateObject(13590,2573.47875977,-1676.80590820,3.09043837,0.00000000,0.00000000,0.00000000); //object(kickbus04) (1)
CreateObject(18451,2588.59570312,-1687.53076172,1.15305138,0.00000000,0.00000000,33.74499512); //object(cs_oldcarjmp) (1)
CreateObject(16367,2586.05053711,-1668.26611328,2.66594076,0.00000000,0.00000000,21.83499146); //object(des_quayramp) (2)
CreateObject(3083,2590.57788086,-1674.02551270,0.71039772,0.00000000,63.52001953,143.63494873); //object(md_poster) (3)
CreateObject(910,2594.58178711,-1674.94689941,2.02118301,0.00000000,93.29501343,117.11505127); //object(bust_cabinet_4) (1)
CreateObject(3073,2587.18261719,-1681.85156250,2.30974197,0.00000000,0.00000000,298.46499634); //object(kmb_container_broke) (1)
CreateObject(926,2594.71435547,-1674.04284668,1.49984670,0.00000000,0.00000000,0.00000000); //object(rubbish_box2) (1)
CreateObject(1265,2595.15673828,-1674.55285645,1.40316498,0.00000000,0.00000000,0.00000000); //object(blackbag2) (1)
CreateObject(13637,2606.88281250,-1694.03369141,2.72832131,0.00000000,0.00000000,87.34002686); //object(tuberamp) (1)
CreateObject(16784,2612.24975586,-1694.06945801,0.75710440,0.00000000,0.00000000,0.00000000); //object(des_alphabit13) (1)
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)