mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-06 05:23:20 +00:00
Check if getting IP worked
This commit is contained in:
parent
7661a95f0e
commit
19d2d6d334
2 changed files with 4 additions and 3 deletions
Binary file not shown.
|
@ -195,9 +195,10 @@ void SetupUserInDB(int client) {
|
||||||
char country[128];
|
char country[128];
|
||||||
char region[128];
|
char region[128];
|
||||||
char ip[64];
|
char ip[64];
|
||||||
GetClientIP(client, ip, sizeof(ip));
|
if(GetClientIP(client, ip, sizeof(ip))) {
|
||||||
GeoipCountry(ip, country, sizeof(country));
|
GeoipCountry(ip, country, sizeof(country));
|
||||||
GeoipRegion(ip, region, sizeof(region));
|
GeoipRegion(ip, region, sizeof(region));
|
||||||
|
}
|
||||||
int time = GetTime();
|
int time = GetTime();
|
||||||
|
|
||||||
char query[512];
|
char query[512];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue