Alright, I know the title's confusing. But I'm trying to make a furniture system for my gamemode. I'm a semi-new scripter so I my code is very very very unefficient. Anyways, I'm saving the objects like this:
What I'm trying to figure out is, if a player is to select an object using the SelectObject function, how can I make it remove the object from the file aswell?
Code:
new string[254];
OVW = GetPlayerVirtualWorld(playerid);
OINT = GetPlayerInterior(playerid);
GetObjectPos(objectid, OX, OY, OZ);
GetObjectRot(objectid, ORX, ORY, ORZ);
format(string, sizeof(string), "User: %s", GetName(playerid));
AddObjectToFile(OBJECT_FILE_NAME, OX, OY, OZ, ORX, ORY, ORZ, OVW, OINT, string);
What I'm trying to figure out is, if a player is to select an object using the SelectObject function, how can I make it remove the object from the file aswell?