I'm in the process of coding character slots which I have done perfectly fine before without this issue. I'm attempting to clear all the flags from the player when switching from one slot to another and this method has worked perfectly fine before for me. What I'm doing is the following in its simplest form
PHP Code:
public function clearFlags(){
for (temp.i : clientr.getdynamicvarnames()) clientr.(@ temp.i) = null;
}
What is happening is that anything that has been added to the players flags in the current session can be echo'd to RC if i were to do echo(temp.i); however anything that wasnt removed is now hanging in the flags indefinately. Sure I could just do something along the lines of clientr.mud_item = null; however this worked previously and it just randomly stopped working so I don't think I should have to hack a way around it. I'm positive that it's within the scope of the player. I can echo the clientr variable to rc just not unset it with that line of code anymore. It's really strange. I've heard of people having issues with clientr variables in the past that randomly stopped working so I'm under the assumption that that is what is going on here but if anyone has any advice on fixing it please share ye wisdom. I've attempted restarting the NPC Server and reconnecting to RC but that did not fix it.