From what I understand, you're trying to make playerloc = "LAN" if the first three characters of the ip address are "10."
If that's the case, then this is the best way I know how to do that:
Code:
if (userip[0] == '1' && userip[1] == '0' && userip[2] == '.')
{
playerloc = "LAN"
playerloccode[0] = 0
}
else
{
geoip_country(userip, playerloc, 45)
geoip_code2(userip, playerloccode)
}
Hopefully that helps you out.