Quote:
Originally Posted by Banana_Ghost
PHP код:
stock Float:GetPlayerAimingPoint(playerid, Float:Angle)
{
new Float:X, Float:Y, Float:Z, Float:Angle;
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, Angle);
X += (5 * floatsin(-Angle, degrees));
Y += (5 * floatcos(-Angle, degrees));
return Angle;
}
|
Bro, why should I create Angle variable, which I have defined in header of function?