View Single Post
  #3  
Old 02-27-2006, 03:27 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
PHP Code:
function GetPlayerIndex(tXtY) {
  for(
temp.i=0;temp.i<players.size();temp.i++) {
    if(
tX in |players[i].x,players[i].x+3| && tY in |players[i].y,players[i].y+3|) {
      return 
temp.i;
    }
  }

  return -
1;

__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote