Moin,
Fehler:
C:\Users\Christian\Desktop\SAMP Server\gamemodes\sap.pwn(386) : error 010: invalid function or declaration
C:\Users\Christian\Desktop\SAMP Server\gamemodes\sap.pwn(937) : warning 235: public function lacks forward declaration (symbol "IsOilAnhanger")
Code:
forward IsOilAnhanger(playerid);
public IsOilAnhanger(playerid)
{
new Float:x, Float:y, Float:z, Float:vX, Float:vY, Float:vZ;
GetPlayerPos(playerid, x,y,z);
new Float:distance = 30.0;
for(new i = 0; i < MAX_VEHICLES; i++)
{
GetVehiclePos(i, vX, vY, vZ);
if((floatabs(x-vX)<distance)&&(floatabs(y-vY)<distance)&&(floatabs(z-vZ)<distance)&&(i != GetPlayerVehicleID(playerid)))
{
if(GetVehicleModel(i) == 584) return 1;
}
}
return 0;
}
wo ist denn da n fehler? XD also ich finde nichts, die Forward ist unter den Includes
MfG: Apoolecu