HeyHoo,
Ich hab grade DT_DynamicCar in meinen Gamemode eingebaut.
Nun, habe ich 2 Errors:
C:\Users\_Zinne\Desktop\Spiele\SAMP Server\gamemodes\ProjektXv0.0.4.pwn(19398) : error 001: expected token: "-identifier-", but found "-integer value-"
C:\Users\_Zinne\Desktop\Spiele\SAMP Server\gamemodes\ProjektXv0.0.4.pwn(19409) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
C:\Users\_Zinne\Desktop\Spiele\SAMP Server\gamemodes\ProjektXv0.0.4.pwn(19409) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
Zeilen:
new vw = GetVehicleVirtualWorld(veh);//ZEILE 19398 (Error 1)
if(strlen(Dtdc_Car[carid][cNumPlate]) != 0){SetVehicleNumberPlate(veh,Dtdc_Car[carid][cNumPlate]);}//ZEILE 19409 (Error 2)
der ganze Stock:
[expander][pwn]
stock Dtdc_RespawnVeh(veh,restorepos=false,inter=0)
{
new carid = Dtdc_GetCarArrayId(veh);
if(carid != 1)
{
Dtdc_Car[carid][cRespawn] = 1;
//Save Everything
new comp[14];
new panels,doors2,lights2,tires,lock;
new Float:Health;
new Float:posx,Float:posy,Float:posz,Float:Rot;
for(new i=0;i<14;i++)
{
comp[i] = GetVehicleComponentInSlot(veh,i);
}
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
GetVehicleHealth(veh,Health);
new vw = GetVehicleVirtualWorld(veh);//ZEILE 19398 (Error 1)
GetVehicleDamageStatus(veh,panels,doors2,lights2,tires);
GetVehiclePos(veh,posx,posy,posz);
GetVehicleZAngle(veh,Rot);
if(strlen(Dtdc_Car[carid][cNumPlate]) != 0){SetVehicleNumberPlate(veh,Dtdc_Car[carid][cNumPlate]);}//ZEILE 19409 (Error 2)
Dtdc_DelNeonFromVeh(veh);
stock Dtdc_RespawnVeh(veh,restorepos=false,inter=0)
{
new carid = Dtdc_GetCarArrayId(veh);
if(carid != 1)
{
Dtdc_Car[carid][cRespawn] = 1;
//Save Everything
new comp[14];
new panels,doors2,lights2,tires,lock;
new Float:Health;
new Float:posx,Float:posy,Float:posz,Float:Rot;
for(new i=0;i<14;i++)
{
comp[i] = GetVehicleComponentInSlot(veh,i);
}
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
GetVehicleHealth(veh,Health);
new vw = GetVehicleVirtualWorld(veh);//ZEILE 19398 (Error 1)
GetVehicleDamageStatus(veh,panels,doors2,lights2,tires);
GetVehiclePos(veh,posx,posy,posz);
GetVehicleZAngle(veh,Rot);
if(strlen(Dtdc_Car[carid][cNumPlate]) != 0){SetVehicleNumberPlate(veh,Dtdc_Car[carid][cNumPlate]);}//ZEILE 19409 (Error 2)
Dtdc_DelNeonFromVeh(veh);
//Respawn
SetVehicleToRespawn(veh);
SetVehicleToRespawn(veh);
//Restore
if(restorepos)
{
SetVehiclePos(veh,posx,posy,posz+0.5);
SetVehicleZAngle(veh,Rot);
if(inter!=0){LinkVehicleToInterior(veh,inter);}
}
SetVehicleParamsEx_Fixed(veh,engine,lights,alarm,lock,bonnet,boot,objective);
SetVehicleHealth(veh,Health);
SetVehicleVirtualWorld(veh,vw);
UpdateVehicleDamageStatus(veh,panels,doors2,lights2,tires);
for(new i=0;i<14;i++)
{
AddVehicleComponent(veh,comp[i]);
}
if(Dtdc_Car[carid][cPJ] != 0){ChangeVehiclePaintjob(Dtdc_Car[carid][cCarId],Dtdc_Car[carid][cPJ]-1);}
ChangeVehicleColor(Dtdc_Car[carid][cCarId],Dtdc_Car[carid][cColor1],Dtdc_Car[carid][cColor2]);
Dtdc_SetNeonToVeh(veh,Dtdc_Car[carid][cNeon]);
if(Dtdc_LockAlarmOnSpawn == 0)
{
Dtdc_Car[carid][cLocked] = 1;
if(Dtdc_LockOrAlarm == 0) {SetVehicleLock(Dtdc_Car[carid][cCarId],Dtdc_Car[carid][cLocked]);}
}
}
}
if(restorepos)
{
SetVehiclePos(veh,posx,posy,posz+0.5);
SetVehicleZAngle(veh,Rot);
if(inter!=0){LinkVehicleToInterior(veh,inter);}
}
SetVehicleParamsEx_Fixed(veh,engine,lights,alarm,lock,bonnet,boot,objective);
SetVehicleHealth(veh,Health);
SetVehicleVirtualWorld(veh,vw);
UpdateVehicleDamageStatus(veh,panels,doors2,lights2,tires);
for(new i=0;i<14;i++)
{
AddVehicleComponent(veh,comp[i]);
}
if(Dtdc_Car[carid][cPJ] != 0){ChangeVehiclePaintjob(Dtdc_Car[carid][cCarId],Dtdc_Car[carid][cPJ]-1);}
ChangeVehicleColor(Dtdc_Car[carid][cCarId],Dtdc_Car[carid][cColor1],Dtdc_Car[carid][cColor2]);
Dtdc_SetNeonToVeh(veh,Dtdc_Car[carid][cNeon]);
if(Dtdc_LockAlarmOnSpawn == 0)
{
Dtdc_Car[carid][cLocked] = 1;
if(Dtdc_LockOrAlarm == 0) {SetVehicleLock(Dtdc_Car[carid][cCarId],Dtdc_Car[carid][cLocked]);}
}
}
}
Bitte um schnelle Hilfe
lg
Deagle