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



Geoip choice? - ombre - 10.03.2014

Hello

Im interested by the script who check the country of players.

There are https://sampforum.blast.hk/showthread.php?tid=32509 old and use a plugin and .dat

and https://sampforum.blast.hk/showthread.php?tid=296171&page=2 can to use mysql ( I want it ) but the author say "I highly recommend you dont use mysql!" I need to +- 80.000 lines mysql for it and this command
Код:
format(string, sizeof(string), "SELECT cn FROM ip_country WHERE ip_to >= INET_ATON(\"%s\") ORDER BY ip_to ASC LIMIT 1", ip);
I don't want a script who to connect on a website for to check the country.

What's the better? fast? less memory/cpu usage? for more 150 players.

Regards.


Re: Geoip choice? - yvoms - 10.03.2014

I would preffer Mysql since u could dump and always reopen data.