27.07.2017, 21:59
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;