SA-MP Forums Archive
Y_Ini wont load, But it do write. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Y_Ini wont load, But it do write. (/showthread.php?tid=607521)



Y_Ini wont load, But it do write. - Luicy. - 20.05.2016

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.


Re: Y_Ini wont load, But it do write. - Luicy. - 21.05.2016

Bump


Re: Y_Ini wont load, But it do write. - Luicy. - 21.05.2016

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;
    }