View Single Post
  #14  
Old 03-09-2008, 06:51 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by coreys View Post
Sorry to double-post, but I've got the weirdest ****ing problem with this now...
When both an RC and a client for an account is on, no matter what you do, when you loop through allplayers it will go to that account twice.
PHP Code:
temp.list = NULL;
for (
plallplayers) {
  if (
pl in temp.list)
    continue;
  
temp.list.add(pl);
  
temp.player findPlayer(pl);
  if (
temp.player.level.name != NULL && temp.player.level.name != "level") {
    if (
temp.player.level.name == params[3])
      echo(
pl);
  }

Will still echo my name twice if I am on both client and RC.
You dont have to do the findPlayer() stuff. Something like this will work:

PHP Code:
for (temp.plallplayers) {
  
pl.addWeapon("xyz");
  
pl.hearts 5;
  
pl.client.foo bar;

Reply With Quote