temp variables are cleared when the function is complete and only exist in the scope of that function, so unless your code is in some sort of while or for loop and iterates at least 20 times your code will never get past the (temp.paralyzecounter >= 1).
temp example:
PHP Code:
function onCreated() {
temp.a = 2;
echo(temp.a);
example();
echo(temp.a);
}
function example() {
temp.a = 3;
echo(temp.a);
}
echos
Quote:
|
Originally Posted by RC
2
3
2
|
Therefore changing temp.paralyzecounter to this.paralyzecounter would make it work properly (or at least how you expect it to).