mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-05 19:03:22 +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 region[128];
|
||||
char ip[64];
|
||||
GetClientIP(client, ip, sizeof(ip));
|
||||
GeoipCountry(ip, country, sizeof(country));
|
||||
GeoipRegion(ip, region, sizeof(region));
|
||||
if(GetClientIP(client, ip, sizeof(ip))) {
|
||||
GeoipCountry(ip, country, sizeof(country));
|
||||
GeoipRegion(ip, region, sizeof(region));
|
||||
}
|
||||
int time = GetTime();
|
||||
|
||||
char query[512];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue