name/kick
What is wrong with this code, it is only kicking people with names like "[Cheater] Nick", but I want it to kick players with "[Cheater]Nick"; when they connect and in-game.
Code:
please see the code below |
Re: name/kick
the part containing the switch is never executed, because you close way too much methods
"} } }" the ones after the "return" post the whole code pls because now it looks like you only showed a tiny bit and it ain't even parts that follow each other due to the "}" |
Re: name/kick
*Re-opened*
Any suggstions, because I am clueless. It kicks players with [Cheater]Nick, but it also kicks players with such names as [clan tag]^Nick, or Nick@; why is it happening, the code shoud not check for special signs, but it does and kicks them. Code:
register_plugin(PLUGIN, VERSION, AUTHOR) |
Re: name/kick
ill take a look for it
so you want to kick players with the name [Cheater]xxxxxxxxxxxxxxxxx xxxx = their nickname and not the players with the name [Cheater]^xxxxxxxxxxxx right? |
Re: name/kick
That is correct. Right now it even kicks players with such nicks as Johny@ or [Masters]^Stewart. I want to kick player only if their nick looks like this one: [Cheater]xxxxxxxx, not like [Cheater] xxxxxxx, or a nick with any special character. I am not even checking for any special characters.
Cheers. |
Re: name/kick
Code:
|
Re: name/kick
I'll try it right now.
warning 211:possibly unintended assignment warning 211:possibly unintended assignment error 022: must be lvalue (non-constant) error 022: must be lvalue (non-constant) error 022: must be lvalue (non-constant) fatal error 107: too many error messages on one line |
Re: name/kick
Code:
:wink: split |
Re: name/kick
Quote:
error 010: invalid function or declaration error 010: invalid function or declaration error 010: invalid function or declaration error 021: symbol already defined: "kick" error 054: unmatched closing brace warning 203: symbol is never used: "c" warning 203: symbol is never used: "i" |
Re: name/kick
aha, thanks emp
pamaliska, it should work fine. Post your whole code. |
| All times are GMT -4. The time now is 22:21. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.