02.03.2015, 06:20
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
then when player login, they skin not are saved skin...
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;
}


