Code
stock CreateVehicleEx(vehicletype, Float:x, Float:y, Float:z, Float:rotation, color1, color2, respawn_delay, bool:reset=false, siren)
{
new vehicleid;
if(vehicletype < 400 || vehicletype > 611)return 0;
vehicleid = CreateVehicle(vehicletype, x, y, z, rotation, color1, color2, respawn_delay, siren); //62418
if(Vehicle[vehicleid][vehMotor])KillTimer(Vehicle[vehicleid][VehicleTimer]);
DestroyDynamicObject(Vehicle[vehicleid][vehNeon1]);
DestroyDynamicObject(Vehicle[vehicleid][vehNeon2]);
DestroyDynamicObject(Vehicle[vehicleid][vehSiren1]);
DestroyDynamicObject(Vehicle[vehicleid][vehSiren2]);
DestroyDynamicObject(Vehicle[vehicleid][vehSiren3]);
DestroyDynamicObject(Vehicle[vehicleid][vehSiren4]);
DestroyDynamicObject(Vehicle[vehicleid][vehSiren5]);
DestroyObject(Vehicle[vehicleid][vehUCL0]);
DestroyObject(Vehicle[vehicleid][vehUCL1]);
DestroyObject(Vehicle[vehicleid][vehUCL2]);
Vehicle[vehicleid][vehNeon1] = INVALID_OBJECT_ID;
Vehicle[vehicleid][vehNeon2] = INVALID_OBJECT_ID;
Vehicle[vehicleid][vehSiren1] = INVALID_OBJECT_ID;
Vehicle[vehicleid][vehSiren2] = INVALID_OBJECT_ID;
Vehicle[vehicleid][vehSiren3] = INVALID_OBJECT_ID;
Vehicle[vehicleid][vehSiren4] = INVALID_OBJECT_ID;
Vehicle[vehicleid][vehSiren5] = INVALID_OBJECT_ID;
Vehicle[vehicleid][vehUCL0] = INVALID_OBJECT_ID;
Vehicle[vehicleid][vehUCL1] = INVALID_OBJECT_ID;
Vehicle[vehicleid][vehUCL2] = INVALID_OBJECT_ID;
Vehicle[vehicleid][vehUCLCreated] = 0;
Vehicle[vehicleid][vehMotor] = false;
Vehicle[vehicleid][vehLicht] = false;
Vehicle[vehicleid][vehHaube] = false;
Vehicle[vehicleid][vehKRaum] = false;
Vehicle[vehicleid][vehPosX2] = x;
Vehicle[vehicleid][vehPosY2] = y;
Vehicle[vehicleid][vehPosZ2] = z;
Vehicle[vehicleid][vehSiren] = siren;
Vehicle[vehicleid][vehProds] = 0;
Vehicle[vehicleid][vehMaterialien] = 0;
Vehicle[vehicleid][vehDrogen] = 0;
Vehicle[vehicleid][vehAKRounds] = 0;
Vehicle[vehicleid][vehM4Rounds] = 0;
Vehicle[vehicleid][vehSniperRounds] = 0;
Vehicle[vehicleid][vehDeagleRounds] = 0;
Vehicle[vehicleid][vehMP5Rounds] = 0;
Vehicle[vehicleid][vehShotgunRounds] = 0;
Vehicle[vehicleid][vehText] = CreateDynamic3DTextLabel(" ", COLOR_WHITE, 50.0, 60.0, 110.0, 20.0, INVALID_PLAYER_ID, vehicleid, 0, -1, -1, -1, 100.0);
Vehicle[vehicleid][vehAbgeschleppt] = 0;
strdel(Vehicle[vehicleid][vehAbgeschlepptVon], 0, MAX_PLAYER_NAME);
if(reset == true)
{
Vehicle[vehicleid][vehTankKM] = 0;
Vehicle[vehicleid][vehKMStandCount] = 0;
Vehicle[vehicleid][vehKMStand] = 0;
Vehicle[vehicleid][vehFuel] = VehicleData[vehicletype-400][vehMaxTank];
Vehicle[vehicleid][vehNeonID] = 0;
Vehicle[vehicleid][vehProds] = 0;
}
return vehicleid;
}
Alles anzeigen
C:\Users\ASUS\Desktop\--\gamemodes\GRR.pwn(62418) : warning 202: number of arguments does not match definition