29.03.2019, 09:55
um i still i don't know how do you find unused index id, for example
i take 'objects' as the objects like indexid to select it later on, what if i created 10 objects, i deleted one with object id 4, how can i find it
if you didnt get what i mean then another example
i created 5 numbers, 1 2 3 4 5 in a sequence, i deleted 3 from the sequence now how will i be able to find it
PHP Code:
//under createobject command
objects++;
objectsid[objects]=objectid;
new Float:X, Float:Y, Float:Z, str[128];
GetPlayerPos(playerid, X, Y, Z);
SpawnedObject[objects] = CreateObject(//etc etc
if you didnt get what i mean then another example
i created 5 numbers, 1 2 3 4 5 in a sequence, i deleted 3 from the sequence now how will i be able to find it