View Single Post
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-27-2009 , 18:00   Re: Module: GeoIP Extended (v1.0.1)
Reply With Quote #29

Ok, after some debug, it's the GeoIPCity.dat file fault. It seems that there are no data for region and city for this ip. But it's weird because latitude and longitude exist..

so in :

Code:
if ( rec )
{
	MF_SetAmxString( amx, params[2], rec->region, 2 );
	return 1;
}
rec is valid but rec->region is not initiliazed because of null and MF_SetAmxString() seems to not like null string.
So as fix, adding "&& rec->region" should be fine.

I'm going to test and I will update here ASAP.
__________________
Arkshine is offline