[Ajuda] Warning
#1

O que tem de errado, que aparece este warning:
Код:
warning 208: function with tag result used before definition, forcing reparse
Codigo:
pawn Код:
stock VeiculoProximo(playerid, Float:distanc, LastVehicle = INVALID_VEHICLE_ID)
{
    new Float:DistanciaMinima = 99999.0, Float:UltimaDistancia, VeiculoId = INVALID_VEHICLE_ID;
    for(new i = 0; i < MAX_VEHICLES; i++)
    {
        if(IsVehicleSpawned(i) && LastVehicle != i)
        {
            UltimaDistancia = GetPlayerDistanceToVehicle(playerid, i);
            if(UltimaDistancia < DistanciaMinima)
            {
                DistanciaMinima = UltimaDistancia;
                VeiculoId = i;
            }
        }
    }
    if(DistanciaMinima > distanc) return INVALID_VEHICLE_ID;
    return VeiculoId;
}
no comando, estб:
pawn Код:
new vehprox = VeiculoProximo(playerid, 2.0);
O que tem de errado??
Reply
#2

up, alguйm?
Reply
#3

tenta

pawn Код:
//TOPO DO GM
forward VeiculoProximo(playerid, Float:distanc, LastVehicle = INVALID_VEHICLE_ID)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)