How use split_string?
I wrote the following code.
But output all zero.. PHP Code:
|
Re: How use split_string?
Show what the source string looks like and what you expect to parse from it.
|
Re: How use split_string?
https://www.amxmodx.org/api/string/split_string
From the documentation split_string should accept the source string, but you are giving it only one letter try to change it to : split_string(sColor, ",", sPart, sPartLen)) |
Re: How use split_string?
PHP Code:
|
Re: How use split_string?
Quote:
PHP Code:
|
Re: How use split_string?
Yea, to make this work you'd need to format it like "255,255,255,"
PHP Code:
|
Re: How use split_string?
Quote:
last comma required? 0,0,255 => output:0 0 0(N/A) 0,0,255,=> output:0 0 255 yeah?! Well, I'll try it when I get home. |
Re: How use split_string?
Using split_string(), yes. I personally would use my code using parse() above.
|
Re: How use split_string?
OK working.
Pattern A: PHP Code:
PHP Code:
thanks all. I knew how to use it so I solved it. |
| All times are GMT -4. The time now is 19:25. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.