Why not works? ((((
Code:
#include <amxmodx>This not kick users who contain "IP addresss: PORT" in nickname .... |
Re: Why not works? ((((
1 Attachment(s)
Try this instead.
|
Re: Why not works? ((((
Your regex is kinda incorrect. You have a trailing : at the end and you do nothing with it. You validate it only until 90.40.33.22: and that's it. Another thing is that you call it on plugin initialization. I'd rather do that on client_putinserver, but you know best, you are the scripter after all.
Now you have two possibilities regarding the regular expression: Add a trailing \d+ after the : or take a look at the regex below. PHP Code:
We have a positive lookahead PHP Code:
PHP Code:
So your regex would look something like the following: PHP Code:
Another thing, I would also use compiled regular expressions and use regex_match, not relying on the handle itself. Just a point of view, I guess. |
| All times are GMT -4. The time now is 02:41. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.