09.11.2012, 14:30
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; }