Function SII to y_ini
#1

This code is in SII but how would be this in y_ini ?

pawn Код:
static file[80];
            format(file,sizeof file,Userfile,GetPName(playerid));
            INI_Open(file);
            SetPlayerSkin(playerid,INI_ReadInt("SSkin"));
            INI_Close();

Thank you
Reply
#2

a system where i load my premium skin

pawn Код:
if(X[playerid] == X)
    {
        SetPlayerSkin(playerid,skin);
    }
    static file[80];
    format(file,sizeof file,Userfile,GetPName(playerid));
    INI_Open(file);
    INI_WriteInt("SSkin",skin);
    INI_Save();
    INI_Close();
    return 1;
That code is inside in a command so when a players relogg the skin premium is setted ( sorry bad english , it's works ) but i need to change it to y_ini
Reply
#3

O yeah i read about SII and i understand ; i tried to this with y_ini ( following some tutorials)

pawn Код:
new
    INI:ini = INI_Open("Userfile"); // <-- i failed here
INI_WriteInt(ini, "SSkin", skin);
INI_Close(ini);
i tried the read a string with INI_Load but i'm confused
Reply
#4

yours
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)