Raised This Month: $32 Target: $400
 8% 

How to insert this query ip api into the plugin?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
2389736818
Member
Join Date: Jul 2014
Location: China
Old 11-30-2018 , 23:53   How to insert this query ip api into the plugin?
Reply With Quote #1

ip api:http://ip-api.com/docs/api:json

What code can be used to implement this function?
__________________
2389736818 is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 12-01-2018 , 00:56   Re: How to insert this query ip api into the plugin?
Reply With Quote #2

HTTP requests can be sent and received with this extension: https://forums.alliedmods.net/showthread.php?t=229556

There's plenty of includes and extensions for JSON but this seems like the most solid choice: https://forums.alliedmods.net/showthread.php?t=306471

This extension is the best of both worlds which you could look into but I remember having problems with it with both bugs and features: https://forums.alliedmods.net/showthread.php?t=298024
Drixevel is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:56.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode