Raised This Month: $ Target: $400
 0% 

get user ip


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
JeweL`
Member
Join Date: Oct 2009
Location: Turkey/Kocaeli
Old 01-23-2010 , 16:26   get user ip
Reply With Quote #1

hey,

when i use "get_user_ip" it gets ip with port..

how i can get user ip without port?
JeweL` is offline
Send a message via MSN to JeweL` Send a message via Skype™ to JeweL`
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 01-23-2010 , 16:29   Re: get user ip
Reply With Quote #2

Quote:
get_user_ip ( index, ip[], len, [ without_port ] )
Quote:
If without_port is set to 1, the port is not included in the string (defaults to 0).
__________________
xbatista is offline
Send a message via Skype™ to xbatista
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 01-23-2010 , 16:31   Re: get user ip
Reply With Quote #3

What he said...
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 01-23-2010 , 16:34   Re: get user ip
Reply With Quote #4

PHP Code:
new szIP[40];

get_user_ip idszIPcharsmax(szIP) , ); // Get player's IP 
It's without the port, the 4-th parameter is set to 1.
__________________

Last edited by xbatista; 01-23-2010 at 16:38.
xbatista is offline
Send a message via Skype™ to xbatista
JeweL`
Member
Join Date: Oct 2009
Location: Turkey/Kocaeli
Old 01-23-2010 , 16:37   Re: get user ip
Reply With Quote #5

thanks
JeweL` is offline
Send a message via MSN to JeweL` Send a message via Skype™ to JeweL`
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 07:18.


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