Args - Help!
Hello guys.
ex: i write in game chat: B1ng0 is here in plugin i have: read_args(message, charsmax(message)) How i can get from message just first word "B1ng0" |
Re: Args - Help!
you could just do:
read_argv(1,message,charsmax(message)) or use strbreak or something to break the message from read_args apart to get the first word |
Re: Args - Help!
Quote:
with read_argv(1,message,charsmax(message)) dont work... but second variant i dont know how to use... |
Re: Args - Help!
You can use parse()
PHP Code:
|
Re: Args - Help!
Quote:
new said[192]; read_args(said, charsmax(said)); if (!said[0]) return PLUGIN_CONTINUE; new msg1[32], msg2[32]; parse(said, msg1, charsmax(msg1), msg2, charsmax(msg)); if i write: hello b1ng0 msg1 show me : hello b1ng0 msg2 dont show nothing... |
Re: Args - Help!
add remove_quotes(said) after read_args(said, charsmax(said))
|
Re: Args - Help!
#drekes & #Nyuszy ty guys, works perfectly!
|
| All times are GMT -4. The time now is 23:30. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.