PlayerDBTreeNode
Locked
FLHook Development
-
Anyone traversed this tree before?
I’ve got it partially working (although I can’t see why it’s only partially, but there we go). It just appears to stop after 9 of the 5000+ nodes it should be reading, and only 3 of the 9 it can open contain the data they should…
void readNode(PlayerDBTreeNode* node) { if (node == NULL) return; readNode(node->pLeft); try { ConPrint(L"Account: %s\n", node->acc->wszAccID); } catch(...) {} readNode(node->pRight); }
That code should work just fine for an in-order traversal of the tree, printing out the account ID’s of each account as its node is found in the tree (the node I’m passing to start being Players.pFirstNode from PlayerDB).
Anyway, any help would be much appreciated. Thanks.