![]() |
tokens
Is there anyway to tokenize a string w/o it breaking it up by spaces, and only by commas.
IE the string: This is an example,test test test,hi would be broken up into: This is an example test test test hi I'm just wondering if there is a command for it, if not I guess i'll do it the hard way since wraptext2 width,font size,delimiter,text; doesnt seem to be working (delimiter portion of it). |
Re: tokens
Quote:
#I(string,index) Sample: for (i=0;i<sarraylen(string);i++) { showtext blablabla,blabla,blabla,blalb,alb,alb,#I(string,i) ; } |
Re: Re: tokens
Quote:
Quote:
NPC Code: There is no blablabla :D |
Re: Re: Re: tokens
Quote:
|
I asked Stefan about this before. Tokenize2 shouldn't count spaces as a delimiter at all times. He said it should be fixed in 3.1.
|
#I() and stuff probably will not work, I think multiple words in one comma seperated string need to be enclosed by ""-quotes.
|
Quote:
|
Quote:
|
All times are GMT +2. The time now is 09:35 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.