Raised This Month: $ Target: $400
 0% 

concmd problems


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
pRED*
Join Date: Dec 2006
Old 02-14-2007 , 20:06   Re: concmd problems
Reply With Quote #1

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.

Last edited by pRED*; 02-14-2007 at 20:27.
pRED* is offline
stupok
Veteran Member
Join Date: Feb 2006
Old 02-14-2007 , 20:28   Re: concmd problems
Reply With Quote #2

I oopsed. Try below:

Code:
new text[64] read_args(text, 63) remove_quotes(text) if(!equal(text, "/whois", 6) return PLUGIN_CONTINUE new player = cmd_target(id, text[7], 1)
stupok is offline
pRED*
Join Date: Dec 2006
Old 02-14-2007 , 20:37   Re: concmd problems
Reply With Quote #3

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
pRED* is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:41.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode