Hello everybody,
I got this Code :
PHP Code:
public ip_check()
{
new szIP[64]
get_cvar_string("ip", szIP, 63)
new Allowed[64]
copy(Allowed, 63, "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.