Function SII to y_ini - 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: Function SII to y_ini (
/showthread.php?tid=491412)
Function SII to y_ini -
SnL - 30.01.2014
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
Respuesta: Function SII to y_ini -
SnL - 30.01.2014
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
Respuesta: Function SII to y_ini -
SnL - 30.01.2014
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
Respuesta: Function SII to y_ini -
SnL - 30.01.2014
yours