concmd problems
Hey I'm having a problem with a say command.
Ive got this in my plugin_init() PHP Code:
PHP Code:
Any help would be appreciated. Thanks |
Re: concmd problems
Try the code below. The code looks like it can be heavily optimized. I don't think you need two arrays with 2048 characters...
Code:
|
Re: concmd problems
I had to change one of the PLUGIN_HANDLED to PLUGIN_CONTINUE to make text work at all.
But still same issue. Typing it into console works, typing it into say just says it.. Im thinking that its all one argument. eg "/whois name". Would that be possible? So once we've checked that it starts with /whois then continue to read the same arg to see if the player name is in there? -e- yup just tested that. I extended the arg1 string and printed it to screen (with quotes removed). It comes up as /whois name. So im guess parse or strbreak would be needed to get just the name? I can't figure out how to use them tho. Arg1="/whois name" and I need to get just name into a separate string. |
Re: concmd problems
I oopsed. Try below:
Code:
|
Re: concmd problems
Yay that works.
Thanks heaps for the help. I've added you to the credits. Look out for it, will be releasing it soonish. First real mod ive done. Oh and I fixed the massive strings thing. Theres prob heaps more stuff that needs to be done tho |
| All times are GMT -4. The time now is 00:41. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.