SA-MP Forums Archive
Hmm ??? - 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: Hmm ??? (/showthread.php?tid=333369)



Hmm ??? - HondaCBR - 11.04.2012

This is objects.txt
Код:
1,MID,X,Y,Z,RX,RY,RZ
2,MID,X,Y,Z,RX,RY,RZ
3,MID,X,Y,Z,RX,RY,RZ
How can I Check if(Something is 2) format X Y Z RX RY RZ in front of 2


Re: Hmm ??? - Cjgogo - 11.04.2012

WOAH,speak more clearly,please?I kinda don't understand what you mean,you want to read from that file?Use this function: https://sampwiki.blast.hk/wiki/GetObjectRot


Re: Hmm ??? - HondaCBR - 11.04.2012

No need to update the file

The first number is an ID

lets say the ID is 1, I want to update X Y Z for the first line
if the number is 3, I want to update X Y Z for the third line


Re: Hmm ??? - Cjgogo - 11.04.2012

OH,sorry,I also don't know,and I hardly need this also,for my Vehicle System.To proove I understand what you mean,when the filek is updating,it replaces the first line,right?


Re: Hmm ??? - TzAkS. - 11.04.2012

Quote:

The first number is an ID

How do you save the ID?
You need to do same thing for load it,with that variable like saving.


Re: Hmm ??? - HondaCBR - 11.04.2012

Never mind