SA-MP Forums Archive
select line in file - 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: select line in file (/showthread.php?tid=511614)



select line in file - jcvag44800 - 06.05.2014

Hello,

I would like to know how we can write on the line I want.
For exemple, I want to write in the line 4
There is my file:

Код:
1,555,2759.152343,-2428.122314,13.506920,82,1,1,Aucun proprietaire,Aucun nom,5000,,0,0
2,555,2759.152343,-2428.122314,13.506920,82,1,1,Aucun proprietaire,Aucun nom,5000,,0,0
3,555,2759.152343,-2428.122314,13.506920,82,1,1,Aucun proprietaire,Aucun nom,5000,,0,0
4,555,2759.152343,-2428.122314,13.506920,82,1,1,Aucun proprietaire,Aucun nom,5000,,0,0
5,555,2759.152343,-2428.122314,13.506920,82,1,1,Aucun proprietaire,Aucun nom,5000,,0,0
6,555,2759.152343,-2428.122314,13.506920,82,1,1,Aucun proprietaire,Aucun nom,5000,,0,0
So, make this:
http://pastebin.com/PU2xmP5D

Normally, the programm write on the line who matching the ID of the vehicle (here, 4)

But; nothing...

Regards


Re: select line in file - Vince - 06.05.2014

You should probably move your system over to SQL (can be SQLite, doesn't have to be MySQL). It seems you've already grasped the concept of assigning each line a unique identifier.


Re : select line in file - jcvag44800 - 06.05.2014

It's not possible to do this with files ?


Re: select line in file - Jefff - 06.05.2014

Its possible but we need more code