how i fix
#1

Код:
D:\Users\Tanush\Desktop\SA-MP SERVERS\SA-MP Server Stunt\gamemodes\server.pwn(7384) : warning 208: function with tag result used before definition, forcing reparse
pawn Код:
stock Float:GetPosInFrontOfPlayer(playerid, &Float:x, &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;
}
how i fix that error
Reply
#2

Just add
pawn Код:
forward Float:GetPosInFrontOfPlayer(playerid, &Float:x, &Float:y, Float:distance);
somewhere before 7384 line.
Reply
#3

You can post: line 7384 ?

pawn Код:
forward GetPosInFrontOfPlayer(playerid, &Float:x, &Float:y, Float:distance);
Float:GetPosInFrontOfPlayer(playerid, &Float:x, &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;
}
Try this..
Reply
#4

Add the stock at the end of the script.
Reply
#5

Quote:
Originally Posted by Norck
Посмотреть сообщение
Just add
pawn Код:
forward Float:GetPosInFrontOfPlayer(playerid, &Float:x, &Float:y, Float:distance);
somewhere before 7384 line.
thanks, repped all
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)