This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

[INC] HPVars - Player variable's


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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, 323 views)
Hirsw0w is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:07.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode