[Help] IP-s
I have 3 server other ip-s but this script not work why ?
PHP Code:
|
Re: [Help] IP-s
There's no way of protecting plugins since you always have to provide the source when distributing it.
|
Re: [Help] IP-s
While I agree with Black Rose, I'll give you some advice that you need to know for scripting in general.
Saying "it doesn't work" rarely helps. You have to explain what about it doesn't work. That being said, you need to learn to debug your plugins to find out which part of the plugin is not working. If neither outcome is occurring then your plugin is not running (this is why you have to tell us exactly what is happening instead of saying "it doesn't work"). Once you know if the plugin is running and the function is being called, you should verify the data that you are trying to check. In this case, you need to find out what IP is actually being obtained by get_user_ip(). These are some steps that you should get used to doing (it's called debugging). |
Re: [Help] IP-s
PHP Code:
|
Re: [Help] IP-s
I can help you because I know the plugin language (Spanish) but this is an exception. The plugin does not work because it gets the server INTERNAL IP, so that does not protect anything. You should look for another protection. A good method is to read a specific file (located in a discrete directory).
|
Re: [Help] IP-s
Quote:
|
Re: [Help] IP-s
Quote:
|
Re: [Help] IP-s
This work and how to make it for 3 ips
PHP Code:
PHP Code:
|
Re: [Help] IP-s
You still haven't been able to tell us what is actually wrong with your plugin and you have not tried to debug it yet.
Simply use log_amx() or server_print() to find out the value of the critical variables involved to determine if they are what they should be. I'd also like to reiterate that your endeavor (your plugin) is pointless because the solution (the BEST solution) is simply to not give your plugin to anyone. |
Re: [Help] IP-s
Thanks fysiks, but any simply script i'm noob for scripting sory... :(
|
| All times are GMT -4. The time now is 13:11. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.