Y_INI saving help
#3

Quote:
Originally Posted by Lordz™
Посмотреть сообщение
Care to share the codes?
PHP код:
enum PlayerInfo
{
    
Pass[129],
    
Adminlevel,
    
VIPlevel,
    
Money,
    
Scores,
    
Kills,
    
Deaths,
    
Skin,
    
FightStyle,
    
Faction,

PHP код:
public loadaccount_user(playeridname[], value[])
{
    
INI_String("Password"pInfo[playerid][Pass],129);
    
INI_Int("AdminLevel",pInfo[playerid][Adminlevel]);
    
INI_Int("VIPLevel",pInfo[playerid][VIPlevel]);
    
INI_Int("Money",pInfo[playerid][Money]);
    
INI_Int("Scores",pInfo[playerid][Scores]);
    
INI_Int("Kills",pInfo[playerid][Kills]);
    
INI_Int("Deaths",pInfo[playerid][Deaths]);
    
INI_Int("Skin",pInfo[playerid][Skin]);
    
INI_Int("FightStyle",pInfo[playerid][FightStyle]);
    
INI_Int("Faction",pInfo[playerid][Faction]);
    return 
1;

Register dialog:
PHP код:
            INI_WriteString(file,"Password",hashpass);
            
INI_WriteInt(file,"AdminLevel",0);
            
INI_WriteInt(file,"VIPLevel",0);
            
INI_WriteInt(file,"Money",50);
            
INI_WriteInt(file,"Scores",0);
            
INI_WriteInt(file,"Kills",0);
            
INI_WriteInt(file,"Deaths",0);
            
INI_WriteInt(file,"Skin",299);
            
INI_WriteInt(file,"FightStyle",4);
            
INI_WriteInt(file,"Faction",0); 
That's what it looks like right now.
I got get values in playerspawn etc...
Reply


Messages In This Thread
Y_INI saving help - by 69 - 02.12.2012, 11:53
Re: Y_INI saving help - by Lordzy - 02.12.2012, 11:56
Re : Re: Y_INI saving help - by 69 - 02.12.2012, 12:03
Re: Y_INI saving help - by [HK]Ryder[AN] - 02.12.2012, 12:05
Re : Re: Y_INI saving help - by 69 - 02.12.2012, 12:07
Re: Y_INI saving help - by [HK]Ryder[AN] - 02.12.2012, 12:17
Re : Re: Y_INI saving help - by 69 - 02.12.2012, 12:20
Re: Y_INI saving help - by Ballu Miaa - 02.12.2012, 12:24
Re : Re: Y_INI saving help - by 69 - 02.12.2012, 12:26
Re: Y_INI saving help - by [HK]Ryder[AN] - 02.12.2012, 12:30

Forum Jump:


Users browsing this thread: 1 Guest(s)