Raised This Month: $ Target: $400
 0% 

amx_who with country, LAN prob


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Zky
Member
Join Date: Nov 2005
Old 03-12-2006 , 16:02  
Reply With Quote #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
Zky is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:16.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode