WTF! I know this isn't your code, but can get change this to use `PtGetLocalPlayer()`? It has a function to get the playerID.