YSI/y_ini function
#7

pawn Код:
forward SaveAccountStats(playerid);
// that on top of your gm
public SaveAccountStats(playerid)
{
    new INI:File = INI_Open(UserPath(playerid));
    INI_SetTag(File,"data");
    INI_WriteInt(File,"Veh1model",PlayerInfo[playerid][pVeh1model]);
    INI_WriteInt(File,"Veh1id",PlayerInfo[playerid][pVeh1id]);
    INI_WriteInt(File,"Veh1colour1",PlayerInfo[playerid][pVeh1colour1]);
    INI_WriteInt(File,"Veh1colour2",PlayerInfo[playerid][pVeh1colour2]);
    INI_WriteFloat(File,"Veh1_x",PlayerInfo[playerid][pVeh1_x]);
    INI_WriteFloat(File,"Veh1_y",PlayerInfo[playerid][pVeh1_y]);
    INI_WriteFloat(File,"Veh1_z",PlayerInfo[playerid][pVeh1_z]);
    INI_WriteString(File,"VehOwned",PlayerInfo[playerid][pVehOwned],128); // change this to the value that in the enum ok
    INI_Close(File);
    return 1;
}
Reply


Messages In This Thread
YSI/y_ini function - by MatZZPL - 09.11.2012, 14:30
Re: YSI/y_ini function - by Abhishek. - 09.11.2012, 14:32
Re: YSI/y_ini function - by Gangster-rocks - 09.11.2012, 14:33
Re: YSI/y_ini function - by MatZZPL - 09.11.2012, 14:33
Re: YSI/y_ini function - by MatZZPL - 09.11.2012, 14:37
Re: YSI/y_ini function - by Smally - 09.11.2012, 14:41
Re: YSI/y_ini function - by Gangster-rocks - 09.11.2012, 14:41
Re: YSI/y_ini function - by MatZZPL - 09.11.2012, 14:43
Re: YSI/y_ini function - by Smally - 09.11.2012, 14:46
Re: YSI/y_ini function - by MatZZPL - 09.11.2012, 14:48

Forum Jump:


Users browsing this thread: 1 Guest(s)