 |
|
Member
|

03-12-2006
, 16:02
|
#4
|
Quote:
|
Originally Posted by capndurk
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.
|
thanks, work
Quote:
|
Originally Posted by Sandurr
Here:
Code:
if (!equal(userip, "10.",3))
{
geoip_country(userip, playerloc, 45)
geoip_code2(userip, playerloccode)
}
else
{
playerloc = "LAN"
playerloccode[0] = 0
}
|
not tested
|
|
|
|