Zeex Pawn compiler-t használok, nos ebben mégis mi lehet a hiba, vagy mi lehet a baja?
Elvben teljesen hibátlan függvény deklaráció.
forward Float:GetXYInFrontOfPlayer(playerid, &Float:q, &Float:w, Float:distance);
public Float:GetXYInFrontOfPlayer(playerid, &Float:q, &Float:w, Float:distance)
{
new Float:a;
GetPlayerPos(playerid, q, w, a);
if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER) GetVehicleZAngle(GetPlayerVehicleID(playerid), a);
else GetPlayerFacingAngle(playerid, a);
q += (distance * floatsin(-a, degrees));
w += (distance * floatcos(-a, degrees));
return a;
}
forward Float:GetRampDistance(playerid);
public Float:GetRampDistance(playerid)
{
new ping = GetPlayerPing(playerid), Float:dist;
dist = floatpower(ping, 0.25);
dist = dist*4.0;
dist = dist+4.0;
return dist;
}
freeroam.pwn(19345) : warning 208: function with tag result used before definition, forcing reparse
freeroam.pwn(19359) : warning 208: function with tag result used before definition, forcing reparse
Pawn compiler 3.2.3664.samp Copyright (c) 1997-2006, ITB CompuPhase