Blocking Unicode Characters
How can I block unicode characters in server? it will be replaced to empty character.
We will not see this character in the chat. For example: Player : Look at here! ౾! How is it? It will be replaced. Player : Look at here! ! How is it? replace_all(msg, charsmax(msg), "౾",""); (NOT WORKING) ---- So, we will just see normal characters which display in console. A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,W,X ,Z,1,2,3,4,5,6,7,8,9,0,-,? (As them) |
Re: Blocking Unicode Characters
Loop through all characters, try isalpha() then replace it
PS: Your signature wouldn't compile :D |
Re: Blocking Unicode Characters
Better consider using regex for things like that.
|
Re: Blocking Unicode Characters
Quote:
get_user_iq() should return an integer. As a workaround you can use str_to_num() on user_IQ in the if-statement. |
Re: Blocking Unicode Characters
Quote:
|
Re: Blocking Unicode Characters
Quote:
Really I need this plugin. I am waiting. |
Re: Blocking Unicode Characters
Quote:
PHP Code:
|
Re: Blocking Unicode Characters
Quote:
Code:
public client_connect(id) |
Re: Blocking Unicode Characters
Is it really important what my signature :ddd
If only you would have helped my problem :d |
Re: Blocking Unicode Characters
We actually did that already, both me and fysiks. If you still need help, give more info.
|
| All times are GMT -4. The time now is 18:02. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.