DeletePVar ES
From SA-MP Wiki
Revision as of 23:21, 27 July 2013; view current revision
←Older revision | Newer revision→
←Older revision | Newer revision→
Description:
Elimina una player variable establecida anteriormente.
(playerid, varname[])
playerid | La ID del jugador. |
varname | El nombre de la player variable (mayúsculas y minúsculas cuentan). |
Return Values:
1 si se eliminó correctamente, 0 si no se eliminó
forward LoadPos(playerid); public LoadPos(playerid) { SetPlayerPos(playerid, GetPVarFloat(playerid,"xpos"), GetPVarFloat(playerid,"ypos"), GetPVarFloat(playerid,"zpos")); return 1; }
Funciones relacionadas
Las siguientes funciones pueden ser útiles, ya que éstas están relacionadas con esta función de alguna u otra manera.
- SetPVarInt Setea el valor una pvar tipo entera(variable por jugador del servidor).
- SetPVarFloat Setea el valor una pvar tipo float (variable por jugador del servidor).
- SetPVarString Setea el valor una pvar tipo string (variable por jugador del servidor).
- GetPVarInt Obtiene el valor una pvar tipo int (variable por jugador del servidor).
- GetPVarFloat Obtiene el valor una pvar tipo float (variable por jugador del servidor).
- GetPVarString Obtiene el valor una pvar tipo string (variable por jugador del servidor).