Raised This Month: $ Target: $400
 0% 

Getting Server IP and compare it with String


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 05-18-2012 , 09:37   Getting Server IP and compare it with String
Reply With Quote #1

Hello everybody,
I got this Code :

PHP Code:
public ip_check()
{
    new 
szIP[64]
    
get_cvar_string("ip"szIP63)
    
    new 
Allowed[64]
    
copy(Allowed63"111.111.111.111")
    
    if(
szIP Allowed)
    {
        
client_print(0,print_chat,"1, %s, %s",szIP,Allowed)
    }
    else
    {
        
client_print(0,print_chat,"0, %s, %s",szIP,Allowed)
    }
    

It does compile, but when I want to check it, I get always the Server IP at "Allowed".
Anyone knows how to fix?

Greetz,
Kia.
Kia 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 00:20.


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