Two questions (y_INI + Vehicle system)
#6

Ok so i assume your using Ini files and Y_Ini, ok i am using the same system , so i use this for example:

GivePlayerCash(playerid,PlayerInfo[playerid][pCash]);


So it all depends on the way you did you Playerinfo Enum...The Most used is ..

enum pInfo
{
pLevel,
pCash,
pScore
}


new PlayerInfo[MAX_PLAYERS][pInfo];


//------- Load the User's data ------//
forward LoadUser_data(playerid,name[],value[]);
public LoadUser_data(playerid,name[],value[])
{
INI_Int("Level",PlayerInfo[playerid][pLevel]);
INI_Int("Cash",PlayerInfo[playerid][pCash]);
INI_Int("Score",PlayerInfo[playerid][pScore]);
return 1;
}


Hope that helps a bit.
Reply


Messages In This Thread
Two questions (y_INI + Vehicle system) - by roleplay500 - 23.05.2012, 06:08
Re: Two questions (y_INI + Vehicle system) - by leonardo1434 - 23.05.2012, 06:16
Re: Two questions (y_INI + Vehicle system) - by roleplay500 - 23.05.2012, 06:31
Re: Two questions (y_INI + Vehicle system) - by leonardo1434 - 23.05.2012, 06:57
Re: Two questions (y_INI + Vehicle system) - by roleplay500 - 23.05.2012, 07:21
Re: Two questions (y_INI + Vehicle system) - by CharlieSanchez - 06.03.2014, 17:59
Re: Two questions (y_INI + Vehicle system) - by Ada32 - 06.03.2014, 18:05

Forum Jump:


Users browsing this thread: 1 Guest(s)