SA-MP Forums Archive
Create file then search it. - 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: Create file then search it. (/showthread.php?tid=283672)



Create file then search it. - Battleskull - 16.09.2011

How would I do the following things. I have file.inc and dini but I dont know how to use them very well. Thanks in advance.

1. Creates a file that stores ip's like this

ip1
ip2
ip3
ect....

2. Then search for a specific ip for example
if 111.111.111.111 is in list, do this

3. Then how would I remove 111.111.111.111 from list.


Re: Create file then search it. - [MWR]Blood - 16.09.2011

https://sampforum.blast.hk/showthread.php?tid=175565

You need to get any file-saving system to this - I reccomend Y_INI. Click the link above.


Re: Create file then search it. - Battleskull - 16.09.2011

I know I have to use a file system, I just dont know how I would go about doing the following things I listed. I know hot to get the player ip. I just don't know how to store multiple ones in 1 file then reference them later by asking if they exist in the file.