I tried to make you lose a ring by using P_GivePlayerRings(player, -1, false), but it gives me an error saying player is undeclared. What should I #include to get the player to be declared? Also, if it matters, it was placed in P_Inter.c.
EDIT: Fixed it by changing player to target->player, but it turns out all it did was kill you instead of making you lose a ring.
EDIT: Fixed it by changing player to target->player, but it turns out all it did was kill you instead of making you lose a ring.