Object format help
#1

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
Reply
#2

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]
Reply
#3

thank you very much , it worked
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)