Raised This Month: $ Target: $400
 0% 

Ip


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 06-09-2010 , 22:05   Re: Ip
Reply With Quote #1

get_user_ip ( index, ip[] , len, [ without_port ] )

PHP Code:
new szIP22 ];

//With port
get_user_ipid szIP charsmaxszIP ) );

//Without port
get_user_ipid szIP charsmaxszIP ) , );

//Try:
namerandomsizeofname ) ) ] 
__________________

Last edited by Bugsy; 06-10-2010 at 08:40.
Bugsy is offline
Merc3y
Member
Join Date: Dec 2009
Old 06-10-2010 , 00:56   Re: Ip
Reply With Quote #2

Quote:
Originally Posted by Bugsy View Post
get_user_ip ( index, ip[] , len, [ without_port ] )

PHP Code:
new szIP22 ];
 
//With port
get_user_ipid szIP charsmaxip ) );
 
//Without port
get_user_ipid szIP charsmaxip ) , );
 
//Try:
namerandomsizeofname ) ) ] 
Error:

PHP Code:
undefined symbol "ip"
get_user_ipid szIP charsmaxip ) ) howeverizzit this? %or %d


symbol is never used 
"name"

client_print(id,print_chat"name[ random( sizeof( name ) ) ]" 
__________________
How I Wish That I Can Host Without Any Problem.
Merc3y is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-10-2010 , 01:56   Re: Ip
Reply With Quote #3

Quote:
Originally Posted by Merc3y View Post
Error:

PHP Code:
undefined symbol "ip"
get_user_ipid szIP charsmaxip ) ) howeverizzit this? %or %d


symbol is never used 
"name"

client_print(id,print_chat"name[ random( sizeof( name ) ) ]" 
Change "ip" to "szIP".
__________________
fysiks is offline
Merc3y
Member
Join Date: Dec 2009
Old 06-10-2010 , 03:15   Re: Ip
Reply With Quote #4

Quote:
Originally Posted by fysiks View Post
Change "ip" to "szIP".
How about this ?

PHP Code:
symbol is never used "name"

new name[ ][ ] =
{
    
"1d",
    
"2d",
    
"3d"
}

client_print(id,print_chat"name[ random( sizeof( name ) ) ]" 
__________________
How I Wish That I Can Host Without Any Problem.
Merc3y is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 06-10-2010 , 09:56   Re: Ip
Reply With Quote #5

Quote:
Originally Posted by Merc3y View Post
Error:

PHP Code:
undefined symbol "ip"
get_user_ipid szIP charsmaxip ) ) howeverizzit this? %or %d


symbol is never used 
"name"

client_print(id,print_chat"name[ random( sizeof( name ) ) ]" 
Sorry, that error is a result of a typo; I corrected the above code. For the name variable, remove the quotes or use as wrecked shows above.
__________________

Last edited by Bugsy; 06-10-2010 at 10:14.
Bugsy is offline
Merc3y
Member
Join Date: Dec 2009
Old 06-10-2010 , 10:50   Re: Ip
Reply With Quote #6

Quote:
Originally Posted by Bugsy View Post
Sorry, that error is a result of a typo; I corrected the above code. For the name variable, remove the quotes or use as wrecked shows above.
I meant ip. how do i put the ip in the print ? using what ? %d ?
__________________
How I Wish That I Can Host Without Any Problem.
Merc3y 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 05:21.


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