12.12.2015, 15:59
hi dear i remove my fixes.inc
and then when i compile that this is my error :
"SaveKonVal" location :
and what i should do now ?
and then when i compile that this is my error :
Код:
C:\Users\Nariman\Desktop\Life In Tehran RPG Server\gamemodes\lfgs.pwn(39) : fatal error 100: cannot read from file: "fixes" Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
Код:
/*----------------------------------------------------------------------------*/ public SaveComponent(vehicleid,componentid) { if(OwnedMashin[vehicleid] == 1 && IsPlayerConnected(MashinOwner[vehicleid])) { for(new s=0; s<20; s++) { if(componentid == spoiler[s][0]) { PlayerInfo[MashinOwner[vehicleid]][cMod1] = componentid; SaveKonVal(MashinOwner[vehicleid], "cMod1", componentid); } } for(new s=0; s<23; s++) { if(componentid == fbumper[s][0]) { PlayerInfo[MashinOwner[vehicleid]][cMod3] = componentid; SaveKonVal(MashinOwner[vehicleid], "cMod3", componentid); } } for(new s=0; s<22; s++) { if(componentid == rbumper[s][0]) { PlayerInfo[MashinOwner[vehicleid]][cMod4] = componentid; SaveKonVal(MashinOwner[vehicleid], "cMod4", componentid); } } for(new s=0; s<28; s++) { if(componentid == exhaust[s][0]) { PlayerInfo[MashinOwner[vehicleid]][cMod5] = componentid; SaveKonVal(MashinOwner[vehicleid], "cMod5", componentid); } } for(new s=0; s<2; s++) { if(componentid == bventr[s][0]) { PlayerInfo[MashinOwner[vehicleid]][cMod6] = componentid; SaveKonVal(MashinOwner[vehicleid], "cMod6", componentid); } } for(new s=0; s<2; s++) { if(componentid == bventl[s][0]) { PlayerInfo[MashinOwner[vehicleid]][cMod7] = componentid; SaveKonVal(MashinOwner[vehicleid], "cMod7", componentid); } } for(new s=0; s<4; s++) { if(componentid == bscoop[s][0]) { PlayerInfo[MashinOwner[vehicleid]][cMod8] = componentid; SaveKonVal(MashinOwner[vehicleid], "cMod8", componentid); } } for(new s=0; s<17; s++) { if(componentid == rscoop[s][0]) { PlayerInfo[MashinOwner[vehicleid]][cMod9] = componentid; SaveKonVal(MashinOwner[vehicleid], "cMod9", componentid); } } for(new s=0; s<21; s++) { if(componentid == lskirt[s][0]) { PlayerInfo[MashinOwner[vehicleid]][cMod10] = componentid; SaveKonVal(MashinOwner[vehicleid], "cMod10", componentid); } } for(new s=0; s<21; s++) { if(componentid == rskirt[s][0]) { PlayerInfo[MashinOwner[vehicleid]][cMod11] = componentid; SaveKonVal(MashinOwner[vehicleid], "cMod11", componentid); } } for(new s=0; s<1; s++) { if(componentid == hydraulics[s][0]) { PlayerInfo[MashinOwner[vehicleid]][cMod12] = componentid; SaveKonVal(MashinOwner[vehicleid], "cMod12", componentid); } } for(new s=0; s<1; s++) { if(componentid == base[s][0]) { PlayerInfo[MashinOwner[vehicleid]][cMod13] = componentid; SaveKonVal(MashinOwner[vehicleid], "cMod13", componentid); } } for(new s=0; s<4; s++) { if(componentid == rbbars[s][0]) { PlayerInfo[MashinOwner[vehicleid]][cMod14] = componentid; SaveKonVal(MashinOwner[vehicleid], "cMod14", componentid); } } for(new s=0; s<2; s++) { if(componentid == fbbars[s][0]) { PlayerInfo[MashinOwner[vehicleid]][cMod15] = componentid; SaveKonVal(MashinOwner[vehicleid], "cMod15", componentid); } } for(new s=0; s<17; s++) { if(componentid == wheels[s][0]) { PlayerInfo[MashinOwner[vehicleid]][cMod16] = componentid; SaveKonVal(MashinOwner[vehicleid], "cMod16", componentid); } } for(new s=0; s<2; s++) { if(componentid == lightss[s][0]) { PlayerInfo[MashinOwner[vehicleid]][cMod17] = componentid; SaveKonVal(MashinOwner[vehicleid], "cMod17", componentid); } } //SaveAccount(MashinOwner[vehicleid]); } if(OwnedMashin_2[vehicleid] == 1 && IsPlayerConnected(MashinOwner_2[vehicleid])) { for(new s=0; s<20; s++) { if(componentid == spoiler[s][0]) { PlayerInfo[MashinOwner_2[vehicleid]][cMod1_2] = componentid; SaveKonVal(MashinOwner_2[vehicleid], "cMod1_2", componentid); } } for(new s=0; s<23; s++) { if(componentid == fbumper[s][0]) { PlayerInfo[MashinOwner_2[vehicleid]][cMod3_2] = componentid; SaveKonVal(MashinOwner_2[vehicleid], "cMod3_2", componentid); } } for(new s=0; s<22; s++) { if(componentid == rbumper[s][0]) { PlayerInfo[MashinOwner_2[vehicleid]][cMod4_2] = componentid; SaveKonVal(MashinOwner_2[vehicleid], "cMod4_2", componentid); } } for(new s=0; s<28; s++) { if(componentid == exhaust[s][0]) { PlayerInfo[MashinOwner_2[vehicleid]][cMod5_2] = componentid; SaveKonVal(MashinOwner_2[vehicleid], "cMod5_2", componentid); } } for(new s=0; s<2; s++) { if(componentid == bventr[s][0]) { PlayerInfo[MashinOwner_2[vehicleid]][cMod6_2] = componentid; SaveKonVal(MashinOwner_2[vehicleid], "cMod6_2", componentid); } } for(new s=0; s<2; s++) { if(componentid == bventl[s][0]) { PlayerInfo[MashinOwner_2[vehicleid]][cMod7_2] = componentid; SaveKonVal(MashinOwner_2[vehicleid], "cMod7_2", componentid); } } for(new s=0; s<4; s++) { if(componentid == bscoop[s][0]) { PlayerInfo[MashinOwner_2[vehicleid]][cMod8_2] = componentid; SaveKonVal(MashinOwner_2[vehicleid], "cMod8_2", componentid); } } for(new s=0; s<17; s++) { if(componentid == rscoop[s][0]) { PlayerInfo[MashinOwner_2[vehicleid]][cMod9_2] = componentid; SaveKonVal(MashinOwner_2[vehicleid], "cMod9_2", componentid); } } for(new s=0; s<21; s++) { if(componentid == lskirt[s][0]) { PlayerInfo[MashinOwner_2[vehicleid]][cMod10_2] = componentid; SaveKonVal(MashinOwner_2[vehicleid], "cMod10_2", componentid); } } for(new s=0; s<21; s++) { if(componentid == rskirt[s][0]) { PlayerInfo[MashinOwner_2[vehicleid]][cMod11_2] = componentid; SaveKonVal(MashinOwner_2[vehicleid], "cMod11_2", componentid); } } for(new s=0; s<1; s++) { if(componentid == hydraulics[s][0]) { PlayerInfo[MashinOwner_2[vehicleid]][cMod12_2] = componentid; SaveKonVal(MashinOwner_2[vehicleid], "cMod12_2", componentid); } } for(new s=0; s<1; s++) { if(componentid == base[s][0]) { PlayerInfo[MashinOwner_2[vehicleid]][cMod13_2] = componentid; SaveKonVal(MashinOwner_2[vehicleid], "cMod13_2", componentid); } } for(new s=0; s<4; s++) { if(componentid == rbbars[s][0]) { PlayerInfo[MashinOwner_2[vehicleid]][cMod14_2] = componentid; SaveKonVal(MashinOwner_2[vehicleid], "cMod14_2", componentid); } } for(new s=0; s<2; s++) { if(componentid == fbbars[s][0]) { PlayerInfo[MashinOwner_2[vehicleid]][cMod15_2] = componentid; SaveKonVal(MashinOwner_2[vehicleid], "cMod15_2", componentid); } } for(new s=0; s<17; s++) { if(componentid == wheels[s][0]) { PlayerInfo[MashinOwner_2[vehicleid]][cMod16_2] = componentid; SaveKonVal(MashinOwner_2[vehicleid], "cMod16_2", componentid); } } for(new s=0; s<2; s++) { if(componentid == lightss[s][0]) { PlayerInfo[MashinOwner_2[vehicleid]][cMod17_2] = componentid; SaveKonVal(MashinOwner_2[vehicleid], "cMod17_2", componentid); } } //SaveAccount(MashinOwner[vehicleid]); } return 1; } public OnVehiclePaintjob(playerid, vehicleid, paintjobid) { if(OwnedMashin[vehicleid] == 1) { PlayerInfo[MashinOwner[vehicleid]][cPaintJob] = paintjobid; SaveKonVal(MashinOwner[vehicleid], "cPaintJob", paintjobid); //SaveAccount(MashinOwner[vehicleid]); } else if(OwnedMashin_2[vehicleid] == 1) { PINFO[MashinOwner_2[vehicleid]][cPaintJob_2] = paintjobid; SaveKonVal(MashinOwner_2[vehicleid], "cPaintJob_2", paintjobid); //SaveAccount(MashinOwner_2[vehicleid]); } return 1; } stock ModVehicle(playerid,vehicleid) { if(OwnedMashin[vehicleid] != 0) { if(PlayerInfo[playerid][cMod1] != 0) { AddVehicleComponent(vehicleid,PlayerInfo[playerid][cMod1]); } if(PlayerInfo[playerid][cMod3] != 0) { AddVehicleComponent(vehicleid,PlayerInfo[playerid][cMod3]); } if(PlayerInfo[playerid][cMod4] != 0) { AddVehicleComponent(vehicleid,PlayerInfo[playerid][cMod4]); } if(PlayerInfo[playerid][cMod5] != 0) { AddVehicleComponent(vehicleid,PlayerInfo[playerid][cMod5]); } if(PlayerInfo[playerid][cMod6] != 0) { AddVehicleComponent(vehicleid,PlayerInfo[playerid][cMod6]); } if(PlayerInfo[playerid][cMod7] != 0) { AddVehicleComponent(vehicleid,PlayerInfo[playerid][cMod7]); } if(PlayerInfo[playerid][cMod8] != 0) { AddVehicleComponent(vehicleid,PlayerInfo[playerid][cMod8]); } if(PlayerInfo[playerid][cMod9] != 0) { AddVehicleComponent(vehicleid,PlayerInfo[playerid][cMod9]); } if(PlayerInfo[playerid][cMod10] != 0) { AddVehicleComponent(vehicleid,PlayerInfo[playerid][cMod10]); } if(PlayerInfo[playerid][cMod11] != 0) { AddVehicleComponent(vehicleid,PlayerInfo[playerid][cMod11]); } if(PlayerInfo[playerid][cMod12] != 0) { AddVehicleComponent(vehicleid,PlayerInfo[playerid][cMod12]); } if(PlayerInfo[playerid][cMod13] != 0) { AddVehicleComponent(vehicleid,PlayerInfo[playerid][cMod13]); } if(PlayerInfo[playerid][cMod14] != 0) { AddVehicleComponent(vehicleid,PlayerInfo[playerid][cMod14]); } if(PlayerInfo[playerid][cMod15] != 0) { AddVehicleComponent(vehicleid,PlayerInfo[playerid][cMod15]); } if(PlayerInfo[playerid][cMod16] != 0) { AddVehicleComponent(vehicleid,PlayerInfo[playerid][cMod16]); } if(PlayerInfo[playerid][cMod17] != 0) { AddVehicleComponent(vehicleid,PlayerInfo[playerid][cMod17]); } if(PlayerInfo[playerid][cPaintJob] != 3) { ChangeVehiclePaintjob(vehicleid,PlayerInfo[playerid][cPaintJob]); } } if(OwnedMashin_2[vehicleid] != 0) { if(PlayerInfo[playerid][cMod1_2] != 0) { AddVehicleComponent(vehicleid,PlayerInfo[playerid][cMod1_2]); } if(PlayerInfo[playerid][cMod3_2] != 0) { AddVehicleComponent(vehicleid,PlayerInfo[playerid][cMod3_2]); } if(PlayerInfo[playerid][cMod4_2] != 0) { AddVehicleComponent(vehicleid,PlayerInfo[playerid][cMod4_2]); } if(PlayerInfo[playerid][cMod5_2] != 0) { AddVehicleComponent(vehicleid,PlayerInfo[playerid][cMod5_2]); } if(PlayerInfo[playerid][cMod6_2] != 0) { AddVehicleComponent(vehicleid,PlayerInfo[playerid][cMod6_2]); } if(PlayerInfo[playerid][cMod7_2] != 0) { AddVehicleComponent(vehicleid,PlayerInfo[playerid][cMod7_2]); } if(PlayerInfo[playerid][cMod8_2] != 0) { AddVehicleComponent(vehicleid,PlayerInfo[playerid][cMod8_2]); } if(PlayerInfo[playerid][cMod9_2] != 0) { AddVehicleComponent(vehicleid,PlayerInfo[playerid][cMod9_2]); } if(PlayerInfo[playerid][cMod10_2] != 0) { AddVehicleComponent(vehicleid,PlayerInfo[playerid][cMod10_2]); } if(PlayerInfo[playerid][cMod11_2] != 0) { AddVehicleComponent(vehicleid,PlayerInfo[playerid][cMod11_2]); } if(PlayerInfo[playerid][cMod12_2] != 0) { AddVehicleComponent(vehicleid,PlayerInfo[playerid][cMod12_2]); } if(PlayerInfo[playerid][cMod13_2] != 0) { AddVehicleComponent(vehicleid,PlayerInfo[playerid][cMod13_2]); } if(PlayerInfo[playerid][cMod14_2] != 0) { AddVehicleComponent(vehicleid,PlayerInfo[playerid][cMod14_2]); } if(PlayerInfo[playerid][cMod15_2] != 0) { AddVehicleComponent(vehicleid,PlayerInfo[playerid][cMod15_2]); } if(PlayerInfo[playerid][cMod16_2] != 0) { AddVehicleComponent(vehicleid,PlayerInfo[playerid][cMod16_2]); } if(PlayerInfo[playerid][cMod17_2] != 0) { AddVehicleComponent(vehicleid,PlayerInfo[playerid][cMod17_2]); } if(PlayerInfo[playerid][cPaintJob_2] != 3) { ChangeVehiclePaintjob(vehicleid,PlayerInfo[playerid][cPaintJob_2]); } } } public OnVehicleMod(playerid,vehicleid,componentid) { if((OwnedMashin[vehicleid] == 1 && IsPlayerConnected(MashinOwner[vehicleid])) || (OwnedMashin_2[vehicleid] == 1 && IsPlayerConnected(MashinOwner_2[vehicleid]))) { SaveComponent(vehicleid, componentid); } return 1; } /*----------------------------------------------------------------------------*/