Help Me With This Error.
#1

The Error Is

Quote:

Project Infinity GamerX\Project Infinity GamerX [UAS]\gamemodes\Angels.pwn(7517) : warning 208: function with tag result used before definition, forcing reparse

The Code Is

Quote:

stock Float:GetPosInFrontOfPlayer(playerid, &Float, &Float:y, Float:distance)
{
new Float:a;
GetPlayerPos(playerid, x, y, a);
if (IsPlayerInAnyVehicle(playerid)) GetVehicleZAngle(GetPlayerVehicleID(playerid), a);
else GetPlayerFacingAngle(playerid, a);
x += (distance * floatsin(-a, degrees));
y += (distance * floatcos(-a, degrees));
return a;
}

Reply
#2

' return a; ' ~

Shouldn't it be, Return 1;
Reply
#3

nope that is suppose to return a

anyway i fixed the problem

i just had to do

forward Float:GetPosInFrontOfPlayer(playerid, &Float, &Float:y, Float:distance);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)