Subtraction does not work?
#2

Код:
forward Float:MapAndreas_FindZ_For2DCoordEx(playerid, Float:X, Float:Y, Float:Z);
public Float:MapAndreas_FindZ_For2DCoordEx(playerid, Float:X, Float:Y, Float:Z)
{
    if(GetPlayerInterior(playerid) > 0)
    {
        return Z - 1.011;
    }
    else if(GetPlayerInterior(playerid) == 0)
    {
        return MapAndreas_FindZ_For2DCoord(X, Y, Z);
    }
    return false;
}
Give this a go. If there was an error found then it'll return false, or 0. Else, it should return the values you need. Suggestion - you probably don't want this as a function with a keyword.
Reply


Messages In This Thread
Subtraction does not work? - by alanhutch - 24.10.2018, 19:11
Re: Subtraction does not work? - by Infin1ty - 24.10.2018, 20:13
Re: Subtraction does not work? - by alanhutch - 24.10.2018, 23:11
Re: Subtraction does not work? - by ReD_HunTeR - 25.10.2018, 00:31
Re: Subtraction does not work? - by alanhutch - 25.10.2018, 08:00
Re: Subtraction does not work? - by Infin1ty - 25.10.2018, 09:29
Re: Subtraction does not work? - by alanhutch - 25.10.2018, 09:53
Re: Subtraction does not work? - by alanhutch - 25.10.2018, 13:37
Re: Subtraction does not work? - by NaS - 25.10.2018, 16:54
Re: Subtraction does not work? - by alanhutch - 26.10.2018, 11:51

Forum Jump:


Users browsing this thread: 2 Guest(s)