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