Help, Warning
#1

Hi guys, i create a public but i can't solve this warning

pawn Код:
public VitaAuto(vehicleid)
{
        new Float:V;
        V = GetVehicleHealth(vehicleid);
        return V;
}
Warning:

pawn Код:
C:\Users\Cosimo Fini\Desktop\samp03dsvr_R2_win32 (1)\gamemodes\rp.pwn(2503) : warning 213: tag mismatch
Reply
#2

pawn Код:
public VitaAuto(vehicleid)
{
        new Float:V;
        GetVehicleHealth(vehicleid, V);
        return V;
}
Reply
#3

Same problem...
Reply
#4

pawn Код:
forward Float:VitaAuto(vehicleid);
public Float:VitaAuto(vehicleid)
{
        static Float:V;
        V = GetVehicleHealth(vehicleid);
        return V;
}
Reply
#5

Can you test the code before you posted it both. Look better on the wiki GetVehicleHealth. It still have the tag mismatch.
To be honest, I am not sure if this works very well, because I don't know for what you wanted it.
pawn Код:
forward VitaAuto(vehicleid);
public VitaAuto(vehicleid)
{
        new V, Float:health;
        V = GetVehicleHealth(vehicleid, health);
        return V;
}
Reply
#6

pawn Код:
forward Float: ViteVeh(v);
public Float: ViteVeh(v)
{
    new Float: Veh;
    GetVehicleHealth(v,Veh);
    return Float: Veh;
}
Finish!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)