From SA-MP Wiki

Jump to: navigation, search


Retrieve the name of a player's pVar via the index.

(playerid, index, ret_varname[], ret_len)
playeridThe ID of the player whose player variable to get the name of.
indexThe index of the player's pVar.
ret_varname[]A string to store the pVar's name in, passed by reference.
ret_lenThe max length of the returned string, use sizeof().

Return Values:

This function does not return any specific values.

Related Functions

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

  • GetPVarInt: Get the previously set integer from a player variable.
  • GetPVarFloat: Get the previously set float from a player variable.
  • GetPVarString: Get the previously set string from a player variable.
Personal tools