Quote:
|
Originally Posted by Charr
Ive been trying to add a search funciton to amx_help, but with absolutly no success. I've been tring for over two hours now, and it just won't work. It prints all commands availible to a person, floods the realible channel, or prints several random commands.
I've narrowed down the problem to the contain, because when I use equal in its place, it works fine.
|
The problem was:
Wasn't properly returning all the Information in a for-loop.
Solution:
Code:
if(contain(a,b)!=-1)
And the other problem was:
Code:
len = format(motd,sizeof(motd)-len,"...")
Each line overwrote the line before it in a loop.
Solution:
Code:
len += format(motd[len],sizeof(motd)-len,"...")
__________________