while i++ == containi[i] problem, i need to skip letters ( fixed)
PHP Code:
and this part i can't get to work, when admin types > !hi nothing happens, it just shows in chat like usual and i tried PHP Code:
nothing it didn't found it )= no amx log was made and if i do while (containi(said[i], "!") != -1) it works only for first characters, i want to make string like "> !hi" make an hud chat like @hi and "> !!hi" make it like @@hi |
Re: while i++ == containi[i] problem
You are comparing a single character (said[i]) to a string of three characters ("> !")
|
Re: while i++ == containi[i] problem
yea i thought of it, and i want to know how make comparation right so it would compare to three characters right and after remove it from message like it removes "!" if it begins with em and make i++ or a thing like that like this code does with single character !
PHP Code:
|
Re: while i++ == containi[i] problem
Code removed.
But, the first character after the last '!' will be expected to be a color indicator. |
Re: while i++ == containi[i] problem
Quote:
|
Re: while i++ == containi[i] problem
Code:
|
Re: while i++ == containi[i] problem
Oops, I forgot an argument. http://www.amxmodx.org/funcwiki.php?go=func&id=47
Wow, three posts all at once :). |
Re: while i++ == containi[i] problem
PHP Code:
|
Re: while i++ == containi[i] problem
Quote:
|
Re: while i++ == containi[i] problem
i get no errors, and as i mentioned in 1st post thins condition does not met, dunno what is wrong
|
All times are GMT -4. The time now is 13:25. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.