SA-MP Forums Archive
CreatingObject HELP - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: CreatingObject HELP (/showthread.php?tid=342361)



CreatingObject HELP - jake_peterson - 13.05.2012

Hey i need help to create an object, i have made this so fare under public OnGameModeInit:

Object1 = CreateObject(4563,1714.2726,-2642.4924,13.5469,0.0, 0.0, 96.0);

then i have also made at the top of the page:

new Object1;

but i still gets these 2 warnings:

C:\Users\Admin\Downloads\GTA San Andreas\egen dm-server\gamemodes\holiwoodstar_2.pwn(493) : warning 225: unreachable code
C:\Users\Admin\Downloads\GTA San Andreas\egen dm-server\gamemodes\holiwoodstar_2.pwn(493) : warning 204: symbol is assigned a value that is never used: "Object1"


i've looked at https://sampwiki.blast.hk/wiki/CreateObject but can still get it to work!
what shall i do, please help!!

OBS!! no MTA Creating


Re: CreatingObject HELP - jake_peterson - 13.05.2012

is there no one who can help me with this?


Re: CreatingObject HELP - jake_peterson - 13.05.2012

Come on is there no one who can help me?!?!?!?!??!?!?!?!?!


Re: CreatingObject HELP - ProdrifterX - 13.05.2012

Dont double post, or tell sorry for double post..
uhum
Just this undergamemodeinit
CreateObject(4563,1714.2726,-2642.4924,13.5469,0.0, 0.0, 96.0);
Not Object1 you dont need this Object1 =
And convert objects on www.convertffs.com
_____________________
I helped you? REP+1 Me. Thanks


Re: CreatingObject HELP - jake_peterson - 13.05.2012

okey, but when i delete "Object 1" i got one warning and one error:
C:\Users\Admin\Downloads\GTA San Andreas\egen dm-server\gamemodes\holiwoodstar_2.pwn(493) : warning 225: unreachable code
C:\Users\Admin\Downloads\GTA San Andreas\egen dm-server\gamemodes\holiwoodstar_2.pwn(493) : error 017: undefined symbol "Object"

and why shall i convert it, i havent use MTA to get any coordinates.