added default file pathes
This commit is contained in:
@ -28,7 +28,7 @@ static cell AMX_NATIVE_CALL amx_geoip_country(AMX *amx, cell *params)
|
||||
|
||||
void OnAmxxAttach()
|
||||
{
|
||||
char *path = MF_BuildPathname("addons/amxx/GeoIP.dat");
|
||||
char *path = MF_BuildPathname("%s/GeoIP.dat",LOCALINFO("amxx_datadir"));
|
||||
gi = GeoIP_open(path, GEOIP_STANDARD);
|
||||
if (gi == NULL) {
|
||||
MF_Log("Failed to instantiate GeoIP!");
|
||||
|
Reference in New Issue
Block a user