for(%i = 0; %i = getNumActivePackages(); %i++) echo(getActivePackage(%i));do that in console and post console.log
That will make you crash. Do this instead:for($i=0; $i < getNumActivePackages(); $i++) echo(getActivePackage($i));
brb while i do it my way and don't crash
ok disregard roostery attitude, i was wrong, do what greek said.
Why did it let me do it my way and not cause crashes when I've tried it before?
You used local (%) variables instead of global ($) variables. You can only use global vars in console (because console is in the global scope). %msg = "blah blah"; commandtoserver('messagesent', %blah); works fine for meAlso, you used an invalid operator (=) rather than using less than (<). oops
augh double posts and triples oh myjust tried for(%i = 0; %i < getNumActivePackages(); %i++) echo(getActivePackage(%i)); and it worked fine
Weird, it only crashes me sometimes (maybe only on dedi servers?). Anyway the crash was probably from your second error then.