Blockland Forums > Help
Auto admin doesn't work with some add-ons!
Greek2me:
--- Quote from: Lugnut1206 on March 14, 2012, 04:27:11 PM ---for(%i = 0; %i = getNumActivePackages(); %i++) echo(getActivePackage(%i));
do that in console and post console.log
--- End quote ---
That will make you crash. Do this instead:
for($i=0; $i < getNumActivePackages(); $i++) echo(getActivePackage($i));
Lugnut:
--- Quote from: Greek2me on March 14, 2012, 11:37:40 PM ---That will make you crash. Do this instead:
for($i=0; $i < getNumActivePackages(); $i++) echo(getActivePackage($i));
--- End quote ---
brb while i do it my way and don't crash
Lugnut:
--- Quote from: Lugnut1206 on March 15, 2012, 12:02:06 AM ---brb while i do it my way and don't crash
--- End quote ---
ok disregard roostery attitude, i was wrong, do what greek said.
Lugnut:
--- Quote from: Lugnut1206 on March 15, 2012, 12:03:34 AM ---ok disregard roostery attitude, i was wrong, do what greek said.
--- End quote ---
ugh, triple posts
Why did it let me do it my way and not cause crashes when I've tried it before?
Greek2me:
--- Quote from: Lugnut1206 on March 15, 2012, 12:04:36 AM ---Why did it let me do it my way and not cause crashes when I've tried it before?
--- End quote ---
You used local (%) variables instead of global ($) variables. You can only use global vars in console (because console is in the global scope).
Also, you used an invalid operator (=) rather than using less than (<).