hey ich hab mir grade das Löschbares feuer eingebaut nun hab ich aba das Problem das ich die Fehler Meldung erhalte
C:\Users\kifkat\Documents\[POD]\gamemodes\pod.pwn(1716) : error 035: argument type mismatch (argument 4)
Aiming_at_Flame(playerid)
{
new id = -1;
new Float:dis = 99999.99;
new Float:dis2;
new Float:fpx, Float:fpy, Float:fpz;
new Float:cx,Float:cy,Float:cz,Float:fx,Float:fy,Float:fz;
GetPlayerCameraPos(playerid, cx, cy, cz);
GetPlayerCameraFrontVector(playerid, fx, fy, fz);
for(new i; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && PlayerOnFire[i] && (IsInWaterCar(playerid) || HasExtinguisher(playerid) || GetPlayerWeapon(playerid) == 41) && PlayerOnFire[i])
{
GetPlayerPos(i, fpx, fpy, fpz);
dis2 = DistanceCameraTargetToLocation(cx, cy, cz, px, py, pz, fx, fy, fz);//1716
if(dis2 < dis)
{
dis = dis2;
id = i;
}
}
}
if(id != -1) { return id-MAX_PLAYERS; }
for(new i; i < MAX_FLAMES; i++)
{
if(Flame[i][Flame_Exists])
{
if(IsInWaterCar(playerid) || HasExtinguisher(playerid) || GetPlayerWeapon(playerid) == 41)
{
dis2 = DistanceCameraTargetToLocation(cx, cy, cz, Flame[i][Flame_x], Flame[i][Flame_y], Flame[i][Flame_z]+Z_DIFFERENCE, fx, fy, fz);
if(IsPlayerInAnyVehicle(playerid) && dis2 < CAR_RADIUS && dis2 < dis)
{
dis = dis2;
id = i;
}
else if(!IsPlayerInAnyVehicle(playerid) && dis2 < ONFOOT_RADIUS && dis2 < dis)
{
dis = dis2;
id = i;
}
}
}
}
if(id != -1)
{
if
(
(
IsPlayerInAnyVehicle(playerid) && !IsPlayerInRangeOfPoint(playerid, 50, Flame[id][Flame_x], Flame[id][Flame_y], Flame[id][Flame_z])
)
||
(
!IsPlayerInAnyVehicle(playerid) && !IsPlayerInRangeOfPoint(playerid, 5, Flame[id][Flame_x], Flame[id][Flame_y], Flame[id][Flame_z])
)
)
{ id = -1; }
}
return id;
}
Könnt mir da wer helfen ?
lg kifkat