Check "^"
Hello! I'm using Admin SQL and I have a problem... I can't have any admin with ^ because it bugs the other ones after them. So all I want to know, is how to check the ^ for don't bug my admins anymore. :)
|
Re: Check "^"
Before save them into sql replace all "^" with "". When you check if player is an admin, use
PHP Code:
|
Re: Check "^"
And how can I replace it?
|
Re: Check "^"
|
Re: Check "^"
Just to check I tried it:
PHP Code:
|
Re: Check "^"
You need to escape the escape character.
"^^" |
Re: Check "^"
Oh in fact it worked... Thanks :)
But just to know, why in the AMXX STUDIO the ")!=-1) is still highlighted if I'm using ^^ ? |
Re: Check "^"
Quote:
The compiler still works fine, so it's nothing to worry about. An interesting bit of trivia: even if you don't change the escape character (i.e. keep it as '^'), Studio will still recognise '\' as one, and mess up the highlighting. |
Re: Check "^"
Quote:
|
Re: Check "^"
Oh thanks :)
Hm, but I think it should be fixed in another release because in fact I've tried "^^" before but as I saw it was hilighted, I thought "Oh it's highlighted, so it shouldn't work :/" |
| All times are GMT -4. The time now is 14:40. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.