SA-MP Forums Archive
Object format help - 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)
+--- Thread: Object format help (/showthread.php?tid=479963)



Object format help - Keptism - 08.12.2013

hello,
I have a FS i which i can edit objects ingame using special 0.3e feature.
SO, i made a map and saved it by the name "test" and then i tried to export the map , then i check the export format ,
it is like this-
http://pastebin.com/WjmDAHs6 [Export format]

But i dont want the these stuffs,
test[0]
test[1]
test[2]
test[3]

I just want the format which is simple as creatobject(X,Y,Z,RX,RY,RZ) .

Can anybody change the export format to the simple creatobject format.I want the export format to be altered to simple format.

The FS is given below-
http://pastebin.com/Qgn6Ai3Z


Re: Object format help - Padevex - 08.12.2013

pawn Код:
new code[200];
format(code, sizeof(code), "%s[%i] = CreateObject(%i, %f, %f, %f, %f, %f, %f);\r\n",inputtext, counter, oInfo[playerid][i][modelID], oInfo[playerid][i][XLoc], oInfo[playerid][i][YLoc], oInfo[playerid][i][ZLoc], oInfo[playerid][i][XRot], oInfo[playerid][i][YRot], oInfo[playerid][i][ZRot]);
to

pawn Код:
new code[200];
format(code, sizeof(code), "CreateObject(%i, %f, %f, %f, %f, %f, %f);\r\n",oInfo[playerid][i][modelID], oInfo[playerid][i][XLoc], oInfo[playerid][i][YLoc], oInfo[playerid][i][ZLoc], oInfo[playerid][i][XRot], oInfo[playerid][i][YRot], oInfo[playerid][i][ZRot]);
on line 2002.

It should save as "CreateObject(X,Y,Z,RX,RY,RZ)" without the Name[X]


Re: Object format help - Keptism - 08.12.2013

thank you very much , it worked