03.03.2018, 11:30
Entгo tб dando erro nessa linha:
Sгo mais de 26 erros igual, a linha que tб com problema й essas:
ERROS que aparecem:
Por favor me ajudem, tou desesperado aqui kk
PHP код:
C:\Users\NunoF\Desktop\SERVIDORES\Servidor 1\gamemodes\GMSV2.pwn(45061) : error 004: function "TuneThisCar" is not implemented
C:\Users\NunoF\Desktop\SERVIDORES\Servidor 1\gamemodes\GMSV2.pwn(45040) : warning 204: symbol is assigned a value that is never used: "Vehicleid"
PHP код:
public LoadModsForAll(vehicleid)//vai na pasta do server
{
new formatLD[256];
new Vehicleid;
Vehicleid = GetPlayerVehicleid(playerid);
format(formatLD,sizeof(formatLD),"Tunning/%d.ini",vehicleid);
if(dini_Exists(formatLD))
{
TuneCar[vehicleid][mod1] = dini_Int(formatLD, "mod1");
TuneCar[vehicleid][mod2] = dini_Int(formatLD, "mod2");
TuneCar[vehicleid][mod3] = dini_Int(formatLD, "mod3");
TuneCar[vehicleid][mod4] = dini_Int(formatLD, "mod4");
TuneCar[vehicleid][mod5] = dini_Int(formatLD, "mod5");
TuneCar[vehicleid][mod6] = dini_Int(formatLD, "mod6");
TuneCar[vehicleid][mod7] = dini_Int(formatLD, "mod7");
TuneCar[vehicleid][mod8] = dini_Int(formatLD, "mod8");
TuneCar[vehicleid][mod9] = dini_Int(formatLD, "mod9");
TuneCar[vehicleid][mod10] = dini_Int(formatLD, "mod10");
TuneCar[vehicleid][mod11] = dini_Int(formatLD, "mod11");
TuneCar[vehicleid][mod12] = dini_Int(formatLD, "mod12");
TuneCar[vehicleid][mod13] = dini_Int(formatLD, "mod13");
TuneCar[vehicleid][mod14] = dini_Int(formatLD, "mod14");
TuneCar[vehicleid][paintjob] = dini_Int(formatLD, "paintjob");
TuneCar[vehicleid][colorA] = dini_Int(formatLD, "color1");
TuneCar[vehicleid][colorB] = dini_Int(formatLD, "color2");
TuneThisCar(vehicleid);
}
return true;
}
public SaveModsForAll(vehicleid)
{
new component[14];
component[0] = GetVehicleComponentInSlot(vehicleid, CARMODTYPE_SPOILER);
component[1] = GetVehicleComponentInSlot(vehicleid, CARMODTYPE_HOOD);
component[2] = GetVehicleComponentInSlot(vehicleid, CARMODTYPE_ROOF);
component[3] = GetVehicleComponentInSlot(vehicleid, CARMODTYPE_SIDESKIRT);
component[4] = GetVehicleComponentInSlot(vehicleid, CARMODTYPE_LAMPS);
component[5] = GetVehicleComponentInSlot(vehicleid, CARMODTYPE_NITRO);
component[6] = GetVehicleComponentInSlot(vehicleid, CARMODTYPE_EXHAUST);
component[7] = GetVehicleComponentInSlot(vehicleid, CARMODTYPE_WHEELS);
component[8] = GetVehicleComponentInSlot(vehicleid, CARMODTYPE_STEREO);
component[9] = GetVehicleComponentInSlot(vehicleid, CARMODTYPE_HYDRAULICS);
component[10] = GetVehicleComponentInSlot(vehicleid, CARMODTYPE_FRONT_BUMPER);
component[11] = GetVehicleComponentInSlot(vehicleid, CARMODTYPE_REAR_BUMPER);
component[12] = GetVehicleComponentInSlot(vehicleid, CARMODTYPE_VENT_RIGHT);
component[13] = GetVehicleComponentInSlot(vehicleid, CARMODTYPE_VENT_LEFT);
TuneCar[vehicleid][mod1] = component[0];
TuneCar[vehicleid][mod2] = component[1];
TuneCar[vehicleid][mod3] = component[2];
TuneCar[vehicleid][mod4] = component[3];
TuneCar[vehicleid][mod5] = component[4];
TuneCar[vehicleid][mod6] = component[5];
TuneCar[vehicleid][mod7] = component[6];
TuneCar[vehicleid][mod8] = component[7];
TuneCar[vehicleid][mod9] = component[8];
TuneCar[vehicleid][mod10] = component[9];
TuneCar[vehicleid][mod11] = component[10];
TuneCar[vehicleid][mod12] = component[11];
TuneCar[vehicleid][mod13] = component[12];
TuneCar[vehicleid][mod14] = component[13];
new formatLD[156];
format(formatLD,sizeof(formatLD),"Tunning/%d.ini",vehicleid);
if(dini_Exists(formatLD))
{
dini_IntSet(formatLD,"mod1",TuneCar[vehicleid][mod1]);
dini_IntSet(formatLD,"mod2",TuneCar[vehicleid][mod2]);
dini_IntSet(formatLD,"mod3",TuneCar[vehicleid][mod3]);
dini_IntSet(formatLD,"mod4",TuneCar[vehicleid][mod4]);
dini_IntSet(formatLD,"mod5",TuneCar[vehicleid][mod5]);
dini_IntSet(formatLD,"mod6",TuneCar[vehicleid][mod6]);
dini_IntSet(formatLD,"mod7",TuneCar[vehicleid][mod8]);
dini_IntSet(formatLD,"mod9",TuneCar[vehicleid][mod9]);
dini_IntSet(formatLD,"mod10",TuneCar[vehicleid][mod10]);
dini_IntSet(formatLD,"mod11",TuneCar[vehicleid][mod11]);
dini_IntSet(formatLD,"mod12",TuneCar[vehicleid][mod12]);
dini_IntSet(formatLD,"mod13",TuneCar[vehicleid][mod13]);
dini_IntSet(formatLD,"mod14",TuneCar[vehicleid][mod14]);
dini_IntSet(formatLD,"paintjob",TuneCar[vehicleid][paintjob]);
dini_IntSet(formatLD,"color1",TuneCar[vehicleid][colorA]);
dini_IntSet(formatLD,"color2",TuneCar[vehicleid][colorB]);
}
else
{
dini_Create(formatLD);
dini_IntSet(formatLD,"mod1",TuneCar[vehicleid][mod1]);
dini_IntSet(formatLD,"mod2",TuneCar[vehicleid][mod2]);
dini_IntSet(formatLD,"mod3",TuneCar[vehicleid][mod3]);
dini_IntSet(formatLD,"mod4",TuneCar[vehicleid][mod4]);
dini_IntSet(formatLD,"mod5",TuneCar[vehicleid][mod5]);
dini_IntSet(formatLD,"mod6",TuneCar[vehicleid][mod6]);
dini_IntSet(formatLD,"mod7",TuneCar[vehicleid][mod8]);
dini_IntSet(formatLD,"mod9",TuneCar[vehicleid][mod9]);
dini_IntSet(formatLD,"mod10",TuneCar[vehicleid][mod10]);
dini_IntSet(formatLD,"mod11",TuneCar[vehicleid][mod11]);
dini_IntSet(formatLD,"mod12",TuneCar[vehicleid][mod12]);
dini_IntSet(formatLD,"mod13",TuneCar[vehicleid][mod13]);
dini_IntSet(formatLD,"mod14",TuneCar[vehicleid][mod14]);
dini_IntSet(formatLD,"paintjob",TuneCar[vehicleid][paintjob]);
dini_IntSet(formatLD,"color1",TuneCar[vehicleid][colorA]);
dini_IntSet(formatLD,"color2",TuneCar[vehicleid][colorB]);
}
return 0;
}
public TuneThisCar(vehicleid)
{
AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod1]);
AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod2]);
AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod3]);
AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod4]);
AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod5]);
AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod6]);
AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod7]);
AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod8]);
AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod9]);
AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod10]);
AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod11]);
AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod12]);
AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod13]);
AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod14]);
ChangeVehiclePaintjob(vehicleid,TuneCar[vehicleid][paintjob]);
ChangeVehicleColor(vehicleid,TuneCar[vehicleid][colorA],TuneCar[vehicleid][colorB]);
return 1;
}
PHP код:
C:\Users\NunoF\Desktop\SERVIDORES\Servidor 1\gamemodes\GMSV2.pwn(45041) : error 017: undefined symbol "vehicleid"
C:\Users\NunoF\Desktop\SERVIDORES\Servidor 1\gamemodes\GMSV2.pwn(45044) : error 017: undefined symbol "vehicleid"
C:\Users\NunoF\Desktop\SERVIDORES\Servidor 1\gamemodes\GMSV2.pwn(45045) : error 017: undefined symbol "vehicleid"
C:\Users\NunoF\Desktop\SERVIDORES\Servidor 1\gamemodes\GMSV2.pwn(45046) : error 017: undefined symbol "vehicleid"
C:\Users\NunoF\Desktop\SERVIDORES\Servidor 1\gamemodes\GMSV2.pwn(45047) : error 017: undefined symbol "vehicleid"
C:\Users\NunoF\Desktop\SERVIDORES\Servidor 1\gamemodes\GMSV2.pwn(45048) : error 017: undefined symbol "vehicleid"
C:\Users\NunoF\Desktop\SERVIDORES\Servidor 1\gamemodes\GMSV2.pwn(45049) : error 017: undefined symbol "vehicleid"
C:\Users\NunoF\Desktop\SERVIDORES\Servidor 1\gamemodes\GMSV2.pwn(45050) : error 017: undefined symbol "vehicleid"
C:\Users\NunoF\Desktop\SERVIDORES\Servidor 1\gamemodes\GMSV2.pwn(45051) : error 017: undefined symbol "vehicleid"
C:\Users\NunoF\Desktop\SERVIDORES\Servidor 1\gamemodes\GMSV2.pwn(45052) : error 017: undefined symbol "vehicleid"
C:\Users\NunoF\Desktop\SERVIDORES\Servidor 1\gamemodes\GMSV2.pwn(45053) : error 017: undefined symbol "vehicleid"
C:\Users\NunoF\Desktop\SERVIDORES\Servidor 1\gamemodes\GMSV2.pwn(45054) : error 017: undefined symbol "vehicleid"
C:\Users\NunoF\Desktop\SERVIDORES\Servidor 1\gamemodes\GMSV2.pwn(45055) : error 017: undefined symbol "vehicleid"
C:\Users\NunoF\Desktop\SERVIDORES\Servidor 1\gamemodes\GMSV2.pwn(45056) : error 017: undefined symbol "vehicleid"
C:\Users\NunoF\Desktop\SERVIDORES\Servidor 1\gamemodes\GMSV2.pwn(45057) : error 017: undefined symbol "vehicleid"
C:\Users\NunoF\Desktop\SERVIDORES\Servidor 1\gamemodes\GMSV2.pwn(45058) : error 017: undefined symbol "vehicleid"
C:\Users\NunoF\Desktop\SERVIDORES\Servidor 1\gamemodes\GMSV2.pwn(45059) : error 017: undefined symbol "vehicleid"
C:\Users\NunoF\Desktop\SERVIDORES\Servidor 1\gamemodes\GMSV2.pwn(45060) : error 017: undefined symbol "vehicleid"
C:\Users\NunoF\Desktop\SERVIDORES\Servidor 1\gamemodes\GMSV2.pwn(45061) : error 004: function "TuneThisCar" is not implemented
C:\Users\NunoF\Desktop\SERVIDORES\Servidor 1\gamemodes\GMSV2.pwn(45040) : warning 204: symbol is assigned a value that is never used: "Vehicleid"
C:\Users\NunoF\Desktop\SERVIDORES\Servidor 1\gamemodes\GMSV2.pwn(45040 -- 45066) : warning 225: unreachable code
C:\Users\NunoF\Desktop\SERVIDORES\Servidor 1\gamemodes\GMSV2.pwn(45066) : error 029: invalid expression, assumed zero
C:\Users\NunoF\Desktop\SERVIDORES\Servidor 1\gamemodes\GMSV2.pwn(45066) : error 004: function "SaveModsForAll" is not implemented