YSI/y_ini function
#1

Hi everyone, im trying to make a save function for the custom car system i'm making but this crashes? I'm not too sure why Anyone knows how to solve it out?
Код:
function 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_WriteInt(File,"VehOwned",PlayerInfo[playerid][pVehOwned]);
	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: 2 Guest(s)