View Single Post
  #21  
Old 08-11-2009, 04:06 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Here is a script I've had the problem with... it may have to do with function temp vars or something:
PHP Code:
function HitWall(k,speed,wall) {
  
temp.foo k;
  for (
temp.i=0;i<speed;i+=1/16) {
    if (
onwall2(check[k][0]+vecx(k)*i,check[k][1]+vecy(k)*i,check[k][2],check[k][3])) {
      if (
k in {0,2}) {
        
player.+= vecy(k)*i;
        
player.int(player.y+.5);
      } else {
        
player.chat k;
        
player.+= vecx(k)*i;
        
player.int(player.x)+.5;
      }
      break;
    }
  }

var foo handles the value proper, var k does not. Player chat will return 0.

I've had the problem more than once, as well.
Reply With Quote