Looping through lines using y_ini
#4

Sure you can. y_ini loves name value pairing, so if you have information saved like this in a ban file

Quote:
Originally Posted by ban.ini
192.168.0.10 = John_Green
ini_load ban file, get player ip, ini_string player ip, isnull check if empty (if not, ban!).

If you save ips like this

Quote:
Originally Posted by ban.ini
192.168.0.10
192.168.0.14
you'll need to open the file, loop through each line, and compare each ip if it matches the player ip.
Reply


Messages In This Thread
Looping through lines using y_ini - by Tagathron - 02.11.2013, 15:52
Re: Looping through lines using y_ini - by gtakillerIV - 02.11.2013, 15:58
Re: Looping through lines using y_ini - by erminpr0 - 02.11.2013, 16:18
Re: Looping through lines using y_ini - by Ada32 - 02.11.2013, 17:08
Re: Looping through lines using y_ini - by Tagathron - 02.11.2013, 17:16
Re: Looping through lines using y_ini - by Ada32 - 02.11.2013, 17:26

Forum Jump:


Users browsing this thread: 2 Guest(s)