Y_Ini wont load, But it do write.
#1

GM: SOLVED

So, The stats saves at the registration, But when I write anything as password it succeds, and then I spawn with 0 health when it says 100.0000 in my ini, So it doesn't load.
Reply
#2

Bump
Reply
#3

Solved, Solution was that I had tags that I didn't define in stocks.
Such as this:
PHP код:
forward LoadUser_account(playerid,name[],value[]);

    public 
LoadUser_account(playerid,name[],value[])
    {
        
INI_String("Password"Player[playerid][pPassword], 255);
        
INI_String("Mail"Player[playerid][pMail], 255);
         return 
1;
    }
    
    
forward LoadUser_character(playerid,name[],value[]);

    public 
LoadUser_character(playerid,name[],value[])
    {
        
INI_Int("Age"Player[playerid][pAge]);
        
INI_String("Gender"Player[playerid][pGender], 255);
        
INI_String("Origin"Player[playerid][pOrigin], 255);
        
INI_String("Accent"Player[playerid][pAccent], 255);
        
INI_Float("Health"Player[playerid][pHealth]);
        
INI_Float("Armour"Player[playerid][pArmour]);
        
INI_Int("Job"Player[playerid][pJob]);
        
INI_Int("Faction"Player[playerid][pFaction]);
        
INI_Int("Money"Player[playerid][pMoney]);
         return 
1;
    }
    
    
forward LoadUser_ooc(playerid,name[],value[]);

    public 
LoadUser_ooc(playerid,name[],value[])
    {
        
INI_String("IP_Reg"Player[playerid][pIP_Reg], 255);
        
INI_String("IP_Last"Player[playerid][pIP_Last], 255);
        
INI_String("Staff"Player[playerid][pStaff], 255);
        
INI_Int("Level"Player[playerid][pLevel]);
         return 
1;
    }
    
    
forward LoadUser_position(playerid,name[],value[]);

    public 
LoadUser_position(playerid,name[],value[])
    {
        
INI_Float("PositionX"Player[playerid][pPositionX]);
        
INI_Float("PositionY"Player[playerid][pPositionY]);
        
INI_Float("PositionZ"Player[playerid][pPositionZ]);
        
INI_Float("Angle"Player[playerid][pAngle]);
        
INI_Int("VirtualWorld"Player[playerid][pVirtualWorld]);
        
INI_Int("Interior"Player[playerid][pInterior]);
         return 
1;
    } 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)