GetPVarsUpperIndex

From SA-MP Wiki

Jump to: navigation, search



Each PVar has its own unique identification number for lookup, this function returns the highest ID set for a player.


Parameters:
(playerid)
playeridThe ID of the player to get the upper PVar index of


ReturnsThe highest PVar ID.


new szString[32];
format(szString, sizeof(szString), "You have %i PVars stored.", GetPVarsUpperIndex(playerid));
SendClientMessage(playerid, -1, szString);

Related Functions

The following functions may be useful, as they are related to this function in one way or another.

Personal tools