View Single Post
  #4  
Old 10-26-2010, 11:01 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
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.2;
  echo(
temp.a);
  
example();
  echo(
temp.a);
}

function 
example() {
  
temp.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).
__________________
Quote:
Reply With Quote