SA-MP Forums Archive
Objects - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Objects (/showthread.php?tid=196008)



Objects - Dime - 04.12.2010

I know is possible save objects as txt or inc file.But how?
Im using Incognito streamer plugin.


Re: Objects - rjjj - 04.12.2010

I think that is something like this:

pawn Код:
new SomeOject;
new Float:SOx;
new Float:SOy;
new Float:SOz;
new Float:SOrx;
new Float:SOry;
new Float:SOrz;

//Function Below is 0.3a CreateObject, just a example ;D
SomeOject = CreateObject(2587, 2001.195679, 1547.113892, 14.283400, 0.0, 0.0, 96.0);

GetObjectPos(SomeOject, SOx, SOy, SOz);
GetObjectRot(SomeOject, SOrx, SOry, SOrz);

new File:ObjectFile;
ObjectFile = fopen("object.txt", io_append);
new ObjectString[256];
format(ObjectString, sizeof(ObjectString), "%d|%f|%f|%f|%f|%f|%f|",SomeOject,SOx,SOy,SOz,SOrx,SOry,SOrz);
fwrite(ObjectFile, ObjectString);
fclose(ObjectFile);

I hope i have helped


Re: Objects - Dime - 04.12.2010

I dont think this will work with incognitos streamer tnx for help.

But anyone get other ideas?