qwerty
23rd September 2015, 20:49
Hey,
Can somebody tell me, why the first way is a working way, and the another is dead end? So it's working fine, after that the array looks good
maps = GetCvar("scr_nextmap_maps");
level.nextmap["maps"] = StrTok(maps, ",");
but in this case the array's size will be 0
level.nextmap["maps"] = StrTok(GetCvar("scr_nextmap_maps"), ",");
The question is why?
Can somebody tell me, why the first way is a working way, and the another is dead end? So it's working fine, after that the array looks good
maps = GetCvar("scr_nextmap_maps");
level.nextmap["maps"] = StrTok(maps, ",");
but in this case the array's size will be 0
level.nextmap["maps"] = StrTok(GetCvar("scr_nextmap_maps"), ",");
The question is why?