[HELP] Simple Object Editor
#6

The problem is here you are not even saving object ids instead relying on the array index of the created object which can work for some systems like vehicles but a bad idea with objects. You should save the objectid on a open array slot then reference that.

Код:
	    myobject = CreateObject(oid, x+2, y+2, z+2, 0.0, 0.0, 90.0);
	    format(string, sizeof(string), "CREATED:%d||CreateObject(%d,%f,%f,%f,0.0,0.0,90.0)",myobject,oid,x,y,z);
	    SendClientMessage(playerid,culoare,string);
	    objectmodel[myobject]=oid;
Reply


Messages In This Thread
[HELP] Simple Object Editor Problem [HELP] - by ThomasEvil - 25.07.2017, 14:31
Re: [HELP] Simple Object Editor - by BrianFaria - 25.07.2017, 15:59
Re: [HELP] Simple Object Editor - by ThomasEvil - 25.07.2017, 16:02
Re: [HELP] Simple Object Editor - by ThomasEvil - 26.07.2017, 23:34
Re: [HELP] Simple Object Editor - by ThomasEvil - 27.07.2017, 19:45
Re: [HELP] Simple Object Editor - by Pottus - 27.07.2017, 21:59
Re: [HELP] Simple Object Editor - by ThomasEvil - 28.07.2017, 19:43
Re: [HELP] Simple Object Editor - by ThomasEvil - 29.07.2017, 13:35
Re: [HELP] Simple Object Editor - by Antenastyle - 29.07.2017, 13:48
Re: [HELP] Simple Object Editor - by ThomasEvil - 29.07.2017, 17:12

Forum Jump:


Users browsing this thread: 2 Guest(s)