Any information to do with the array include.
I wanted to get a good idea on how to use it. This is mainly to do with a bunch of names, or rather parts of names, that I want to check against a list. I would use fread to get it into one variable but then I must be able to separate it out so I can check each individual tag against the players name. But there seems to be no good and clean way of getting this working. Oh, and there is no real help in the funciton list, as it does not tell you how to even place it in your code.
I WANT EXPLODE FROM PHP! |
Code:
|
Thanks :)
[EDIT] How would use use it. Say I wanted to separate, a /n (new line), or a "/". How would I do it. [EDIT] Eh, took alook at the plugin, would seem that if I wanted to remove the / from the string and call each of these into BCL then I would do this . . . Right? Code:
ExplodeString(BCL,MAX_CVAR_VALS,BadClanFile,31,'/') |
Seeminginly not as complicated version by Asskickr:
Code:
Make sure the third argument is a character, not a string (apostrophes instead of quotation marks). |
<_< what if nIdx overflows
|
Then you'll get nasty runtime errors and be ashamed of yourself for not accounting for that.
|
or you can fix it ;]
(also I've optimized it a bit, doing a strlen() in an iterator condition is slow) Code:
|
Thank you BAILOPAN.
|
| All times are GMT -4. The time now is 14:26. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.