Getting certain IP adress
I'm making plugin with would write a message to a connected player by the IP adress.
And I'm not sure do i need to check once again IP in "announcment" function? PHP Code:
|
Re: Getting certain IP adress
That won't even function as you want it to
PHP Code:
|
Re: Getting certain IP adress
For some reason your given come not working too. I dont get any message after 35sec
I'v changed ip_set to my ip ofc |
Re: Getting certain IP adress
Try deleting the 1 from the get_user_ip.
|
Re: Getting certain IP adress
Quote:
This will never work if PHP Code:
|
Re: Getting certain IP adress
Quote:
The longer the task, the more likely this is to happen. However, one alternative is to remove the task on disconnect which should theoretically prevent the above mentioned race condition. |
Re: Getting certain IP adress
@fysiks - Yeah, forgot to tell about that. Remove task at disconnect :-) thanks for pointing that out
|
Re: Getting certain IP adress
I'm not really familiar with tasks, should it look like that when i'm removing it?
PHP Code:
|
Re: Getting certain IP adress
Quote:
|
All times are GMT -4. The time now is 04:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.