From SA-MP Wiki
Each PVar has its own unique identification number for lookup, this function returns the highest ID set for a player.
|playerid||The ID of the player to get the upper PVar index of|
|Returns||The highest PVar ID.|
new szString; format(szString, sizeof(szString), "You have %i PVars stored.", GetPVarsUpperIndex(playerid)); SendClientMessage(playerid, -1, szString);
The following functions may be useful, as they are related to this function in one way or another.
- GetPVarNameAtIndex: Get the player variable's name from its index.
- GetPVarType: Get the type of the player variable.