Moving a String into a array
Code:
Now, i need a way to split this string up into this array Code:
I tried doing: Code:
|
How about doing something like:
Code:
then parse it like: Code:
|
parse is bad. create a maximum limit to the size and work from there to manually break the string.
|
Hmmm...You could use Parse and Array. Are you getting this text from a text file? So instead of Parse use the new one:
Code:
strtok(const text[], Left[], leftLen, Right[], rightLen, token=' ', trimSpaces=0)So I would look at it like this: Code:
//GlobalCheers! |
You could try BAILOPAN's array module to make it more dynamic.
|
Code:
|
Ummmm....thats what I put PM!!! Heheheheh
Cheers! |
I think I solved something similar along time ago by using parse, getting one word at a time. Right after parse I cut that parsed chunk off, and reparsed until I got it all.
Nothing dynamic about the array to store to though. Small is the opposite of dynamic :-\ |
True, but with the Array Module you get the Dynamics! Which is great!
|
Quote:
But the amont of words(maps) is gonna change . so it needs to work with "any" amount of maps. What plugin did you do this in? |
| All times are GMT -4. The time now is 17:28. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.