View Single Post
Author Message
Hirsw0w
Junior Member
Join Date: Jul 2014
Old 09-05-2014 , 06:39   [INC] HPVars - Player variable's
Reply With Quote #1

HPVars
by Hirsw0w

Description:

This Include used for save player variable's without new parameters,
The Idea came from SAMP and this is neccery thing there.
the use is simple and not need to much, the save for Float,Int and string.

Defines:


Code:
#define MAX_VARNAME 32 // max var name length
#define MAX_VARINPUT 128 // max var input length
#define MAX_PLAYERS 32 // max players define
#define MAX_VARS 50 // max vars in once
Functions:

Code:
Set:
[[SetPVarString(playerid,varname[],varinput[]) // create\set string in player var.
SetPVarInt(playerid,varname[],varinput) // create\set int in player var.
SetPVarFloat(playerid,varname[],Float:varinput) // create\set Float in player var.

Get:
GetPVarString(playerid,varname[]) // get string from player var.
GetPVarInt(playerid,varname[]) // get int from player var.
GetPVarFloat(playerid,varname[]) // get Float from player var.

Others:
[DeletePVar(playerid,varname[]) // delete player var.
DeleteAllPVars(playerid) // delete all player vars
ResetVars() // reset all players vars.
code:


http://pastebin.com/s3EFj57G


I know that really easy to make, but that good,
sorry for my bad english and if you have comments for this i love to hear that.
builed by me.


Enjoy!!!
Attached Files
File Type: inc hpvars.inc (1.9 KB, 320 views)
Hirsw0w is offline