I have this:
PHP Code:
function onActionServerSide() {
if (params[0] == "loadPTList") {
for (pl: allplayers) {
if (findplayer(pl).attr[5]) {
temp.searching_list.add(findplayer(pl));
triggerClient("gui", name, "sendList");
}
}
}
}
I tested and the serverside is getting triggered up until the if command. What I'm obviously trying to do is if the player.attr[5] for all players on at that time are true, to add them to a temp.array, but its not, its stopping at the if command, and mine, at least in testing, is true.