Y_INI output
#1

hi, sorry for my bad english b4 xD

i want to ask, i have a problem with saving skins... when it save skin the output of tag "Skins" is -1

Код:
// OnDialogResponse -- Dialog Register

INI_WriteInt(file,"Kills",0);
INI_WriteInt(file,"Deaths",0);
INI_WriteInt(file,"Skins",pInfo[playerid][pSkin]);
INI_Close(file);

public OnPlayerSpawn(playerid)
{
SetPlayerSkin(playerid, pInfo[playerid][pSkin]);
return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
INI_WriteInt(file"Skins", GetPlayerSkin(playerid));
}

CMD:skin(playerid, params[])
{
    .... //my code
    ....
    SetPlayerSkin(playerid, skin);
    pInfo[playerid][pSkin] = skin);
    return 1;
}
then when player login, they skin not are saved skin...
Reply


Messages In This Thread
Y_INI output - by TazmaNiax - 02.03.2015, 06:20
Re: Y_INI output - by MikE1990 - 02.03.2015, 06:23
Re: Y_INI output - by TazmaNiax - 02.03.2015, 07:02
Re: Y_INI output - by MikE1990 - 02.03.2015, 07:07
Re: Y_INI output - by TazmaNiax - 02.03.2015, 08:24
Respuesta: Y_INI output - by JuanStone - 02.03.2015, 08:33

Forum Jump:


Users browsing this thread: 1 Guest(s)