Author Topic: String Manipulation [causes strange crash]  (Read 2000 times)

Xalos, that is only if you display it.

OP, try replacing this line:
Code: [Select]
return getWords(%msg, 0, (%fwl - 1)) SPC getWords(%msg, (%lwl + 1), %wc);
with this:
Code: [Select]
%blah = getWords(%msg, 0, (%fwl - 1)) SPC getWords(%msg, (%lwl + 1), %wc);

echo("yay");

return %blah;

That way you can see if that return statement is actually causing problems.

I've figured out the problem already. "getWords" is getting the wrongly defined variables in it, causing it to crash.

Xalos, that is only if you display it.

...although in my experience that only happens if you DISPLAY a string that long.


Thanks, Captain Obvious! :D