Oh boy
PHP Code:
function onCreated() {
this.trigger("YourTerribleCodeFixed", 0, this.maxlooplimit*2);
}
function onYourTerribleCodeFixed(start, total) {
temp.sub = min(total, this.maxlooplimit);
for (temp.i = 0; temp.i < temp.sub; temp.i++) {
echo(start + temp.i);
}
total -= temp.sub;
if (total > 0) {
this.scheduleevent(1, "YourTerribleCodeFixed",
start + temp.sub, total);
}
}
e: You could also forgo the scheduleevent, but triggers have their own per-frame limit (10 or so).
e2: but at least if you do it will fail silently!
