Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Removing mapping that's saved to specific user | TXT File!

$
0
0
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:
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?

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>