Raised This Month: $51 Target: $400
 12% 

IP Check


Post New Thread Reply   
 
Thread Tools Display Modes
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 05-03-2009 , 14:37   Re: IP Check
Reply With Quote #11

Quote:
Originally Posted by Nextra View Post
Its exactly the same. Everything in client_print that comes after print_chat is based on format, it makes no difference if you format before or with client_print. The OP code should be perfectly fine.
I mean I formatted the array and added "Your IP is %s.", which needs more space than just for IP.
__________________
hleV is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-03-2009 , 14:59   Re: IP Check
Reply With Quote #12

His original code does work but does not allocate enough space for the port. He can either increase the buffer or pass the 'no port' flag to get_user_ip and be good to go.

Your IP is: 192.168.1.12:270
bugsy : /myip
__________________
Bugsy is offline
Nextra
Veteran Member
Join Date: Apr 2008
Location: Germany
Old 05-03-2009 , 18:11   Re: IP Check
Reply With Quote #13

Quote:
Originally Posted by hleV View Post
I mean I formatted the array and added "Your IP is %s.", which needs more space than just for IP.
I know, all I wanted to say is that your code is (except for the port thing) exactly doing the same as his.
__________________
In Flames we trust!
Nextra is offline
Reply



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 02:34.


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