View Single Post
  #1  
Old 04-06-2012, 07:31 AM
Gunderak Gunderak is offline
Coder
Gunderak's Avatar
Join Date: Jun 2011
Location: Australia
Posts: 795
Gunderak is on a distinguished road
player.account error?

I am currently making a targeting system and of course I don't want it so you can target yourself. But it seems it doesn't recognize when you are targeting yourself..
Here is the part that is problematic.
PHP Code:
function onMouseDown(bu){
  if(
leftmousebutton){
    for(
temp.players){
      if(
temp.!= player.account){
        if(
mousex in p.xp.| && mousey in p.yp.3|){
          
this.target temp.p;
          
onTimeout();
        }
      }
    }
  }

Does anyone here know why if(temp.p != player.account){ isn't working?
__________________

Gund for president.

Remote PM {P*}x (Graal813044) from eraiphone -> Stefan: I hav 1 qustion
*Gunderak: he hav 1
*Gunderak: qustion
Reply With Quote