Parse
Hey.
I used the parse() function in the 'say' hook function and it doesnt work properly I don't know why. I did the following: PHP Code:
Code:
Arg1 = /points, Arg2 =What am I doing wrong? Thanks in advance. |
Re: Parse
Cuz' of this I believe it assumes that the first part is 49 characters:
PHP Code:
Seems kinda wierd however that you got that ", Arg2 =" printed. :? |
Re: Parse
The message is simple: "/level p1Mp"
the space is after '/level' and then p1Mp. and I dont think the 50 is the cause, cuz what it does is take arg1 and just copy it on 50 cells array (then it'll have like 8 cells with values then the rest are NULL TERMINATORS), but it doesnt (shouldnt) affect the parse.... |
Re: Parse
Just found something wierd, it parses the message by " but not SPACE
I typed /level" p1Mp and it said: arg1 = /level, arg2 = p1Mp Why the heck is it breaking at "??? how can I change it to SPACE |
Re: Parse
Quote:
|
Re: Parse
read_args places all the arguments within quotes. You need to use remove_quotes on message first.
parse separates based on quotations before spaces. |
Re: Parse
ty :)
|
| All times are GMT -4. The time now is 14:15. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.