GML
/*
Script By Jblund aka. Smallware
argument0 = string you want to split up / explode
argument1 = substring you want to split the string by
fx.
argument0 = "hello|very|very|cruel|world"
arguemnt1 = "|"
array[0] = "hello"
array[1] = "very"
...
array[4] = "world"
fx.
argument0 = "abcdefghijklmn"
argument1 = "defg"
array[0] = "abc"
array[1] = "hijklmn"
*/
my_string = argument0;
explode = argument1;
numbers = string_count(explode,my_string);
for(i=0;i<=numbers;+=1)
{
pos = string_pos(explode,my_string);
array = string_copy(my_string,1,pos-1);
my_string = string_delete(my_string,1,pos);
}
http://gmc.yoyogames.com/index.php?showtopic=358444 Trzeci link po wyszukaniu w google "gml string explode"