Как вы поняли не сохраняется тюнинг.Сделал все что смог... Может у вас есть какие нибудь идеи?
if(strcmp(cmd, "/tunecar", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 13 || IsPlayerAdmin(playerid))
ShowPlayerDialog(playerid, 14, DIALOG_STYLE_LIST, "Ñïèñîê äèñêîâ", "Shadow\nMega\nWires\nClassic\nRimshine\nCutter\nTwist\nSwitch\nGrove\nImport\nDollar\nTrance\nAtomic\nÃèäðàâëèêà\nÀçîò\nÑïîéëåð1\nÑïîéëåð2\nÑïîéëåð3\nÑïîéëåð4", "OK", "Íàçàä");
}
}
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 13 || IsPlayerAdmin(playerid))
ShowPlayerDialog(playerid, 14, DIALOG_STYLE_LIST, "Ñïèñîê äèñêîâ", "Shadow\nMega\nWires\nClassic\nRimshine\nCutter\nTwist\nSwitch\nGrove\nImport\nDollar\nTrance\nAtomic\nÃèäðàâëèêà\nÀçîò\nÑïîéëåð1\nÑïîéëåð2\nÑïîéëåð3\nÑïîéëåð4", "OK", "Íàçàä");
}
}
if(dialogid == 14)//spisok diskov
{
if(response)
{
new car = GetPlayerVehicleID(playerid);
if(listitem == 0)AddVehicleComponent(car,1073); CarInfo[car][vehmod1] = 1073;
if(listitem == 1)AddVehicleComponent(car,1074); CarInfo[car][vehmod1] = 1074;
if(listitem == 2)AddVehicleComponent(car,1076); CarInfo[car][vehmod1] = 1076;
if(listitem == 3)AddVehicleComponent(car,1077); CarInfo[car][vehmod1] = 1077;
if(listitem == 4)AddVehicleComponent(car,1075); CarInfo[car][vehmod1] = 1075;
if(listitem == 5)AddVehicleComponent(car,1079); CarInfo[car][vehmod1] = 1079;
if(listitem == 6)AddVehicleComponent(car,1078); CarInfo[car][vehmod1] = 1078;
if(listitem == 7)AddVehicleComponent(car,1080); CarInfo[car][vehmod1] = 1080;
if(listitem == 8)AddVehicleComponent(car,1081); CarInfo[car][vehmod1] = 1081;
if(listitem == 9)AddVehicleComponent(car,1082); CarInfo[car][vehmod1] = 1082;
if(listitem == 10)AddVehicleComponent(car,1083); CarInfo[car][vehmod1] = 1083;
if(listitem == 11)AddVehicleComponent(car,1084); CarInfo[car][vehmod1] = 1084;
if(listitem == 12)AddVehicleComponent(car,1085); CarInfo[car][vehmod1] = 1085;
if(listitem == 13)AddVehicleComponent(car,1087); CarInfo[car][vehmod2] = 1087; //ãèäðà
if(listitem == 14)AddVehicleComponent(car,1010); CarInfo[car][vehmod3] = 1010; //àçîò
if(listitem == 15)AddVehicleComponent(car,1000); CarInfo[car][vehmod4] = 1000;// spoiler1
if(listitem == 16)AddVehicleComponent(car,1001); CarInfo[car][vehmod4] = 1001;// spoiler2
if(listitem == 17)AddVehicleComponent(car,1002); CarInfo[car][vehmod4] = 1002;// spoiler3
if(listitem == 18)AddVehicleComponent(car,1003); CarInfo[car][vehmod4] = 1003;// spoiler4
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
OnCarUpdate();
ShowPlayerDialog(playerid, 14, DIALOG_STYLE_LIST, "Ñïèñîê äèñêîâ", "Shadow\nMega\nWires\nClassic\nRimshine\nCutter\nTwist\nSwitch\nGrove\nImport\nDollar\nTrance\nAtomic\nÃèäðàâëèêà\nÀçîò\nÑïîéëåð1\nÑïîéëåð2\nÑïîéëåð3\nÑïîéëåð4", "OK", "Íàçàä");
}
return true;
}
{
if(response)
{
new car = GetPlayerVehicleID(playerid);
if(listitem == 0)AddVehicleComponent(car,1073); CarInfo[car][vehmod1] = 1073;
if(listitem == 1)AddVehicleComponent(car,1074); CarInfo[car][vehmod1] = 1074;
if(listitem == 2)AddVehicleComponent(car,1076); CarInfo[car][vehmod1] = 1076;
if(listitem == 3)AddVehicleComponent(car,1077); CarInfo[car][vehmod1] = 1077;
if(listitem == 4)AddVehicleComponent(car,1075); CarInfo[car][vehmod1] = 1075;
if(listitem == 5)AddVehicleComponent(car,1079); CarInfo[car][vehmod1] = 1079;
if(listitem == 6)AddVehicleComponent(car,1078); CarInfo[car][vehmod1] = 1078;
if(listitem == 7)AddVehicleComponent(car,1080); CarInfo[car][vehmod1] = 1080;
if(listitem == 8)AddVehicleComponent(car,1081); CarInfo[car][vehmod1] = 1081;
if(listitem == 9)AddVehicleComponent(car,1082); CarInfo[car][vehmod1] = 1082;
if(listitem == 10)AddVehicleComponent(car,1083); CarInfo[car][vehmod1] = 1083;
if(listitem == 11)AddVehicleComponent(car,1084); CarInfo[car][vehmod1] = 1084;
if(listitem == 12)AddVehicleComponent(car,1085); CarInfo[car][vehmod1] = 1085;
if(listitem == 13)AddVehicleComponent(car,1087); CarInfo[car][vehmod2] = 1087; //ãèäðà
if(listitem == 14)AddVehicleComponent(car,1010); CarInfo[car][vehmod3] = 1010; //àçîò
if(listitem == 15)AddVehicleComponent(car,1000); CarInfo[car][vehmod4] = 1000;// spoiler1
if(listitem == 16)AddVehicleComponent(car,1001); CarInfo[car][vehmod4] = 1001;// spoiler2
if(listitem == 17)AddVehicleComponent(car,1002); CarInfo[car][vehmod4] = 1002;// spoiler3
if(listitem == 18)AddVehicleComponent(car,1003); CarInfo[car][vehmod4] = 1003;// spoiler4
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
OnCarUpdate();
ShowPlayerDialog(playerid, 14, DIALOG_STYLE_LIST, "Ñïèñîê äèñêîâ", "Shadow\nMega\nWires\nClassic\nRimshine\nCutter\nTwist\nSwitch\nGrove\nImport\nDollar\nTrance\nAtomic\nÃèäðàâëèêà\nÀçîò\nÑïîéëåð1\nÑïîéëåð2\nÑïîéëåð3\nÑïîéëåð4", "OK", "Íàçàä");
}
return true;
}
enum cInfo
{
vehmodel,
Float:vehx,
Float:vehy,
Float:vehz,
Float:vehfa,
vehowned,
vehowner[MAX_PLAYER_NAME],
vehcost,
vehclass,
vehcolor1,
vehcolor2,
vehmod1,
vehmod2,
vehmod3,
vehmod4,
vehmod5,
vehmod6,
vehmod7,
vehmod8,
vehmod9,
vehmod10,
vehmod11,
vehmod12,
vehmod13,
vehmod14,
vehpaintjob,
vehlock,
vehlvl,
vehSued,
vehSuedFor,
vehSuedBy[MAX_PLAYER_NAME],
vehSuedWhy[256],
};
new CarInfo[450][cInfo];
new buyveh[sizeof(CarInfo)];
Смотрел по примеру других модов и все ровно не работает.Печальбда.
{
vehmodel,
Float:vehx,
Float:vehy,
Float:vehz,
Float:vehfa,
vehowned,
vehowner[MAX_PLAYER_NAME],
vehcost,
vehclass,
vehcolor1,
vehcolor2,
vehmod1,
vehmod2,
vehmod3,
vehmod4,
vehmod5,
vehmod6,
vehmod7,
vehmod8,
vehmod9,
vehmod10,
vehmod11,
vehmod12,
vehmod13,
vehmod14,
vehpaintjob,
vehlock,
vehlvl,
vehSued,
vehSuedFor,
vehSuedBy[MAX_PLAYER_NAME],
vehSuedWhy[256],
};
new CarInfo[450][cInfo];
new buyveh[sizeof(CarInfo)];
Смотрел по примеру других модов и все ровно не работает.Печальбда.