Help, Warning - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help, Warning (
/showthread.php?tid=309848)
Help, Warning -
Fires - 09.01.2012
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
Re: Help, Warning -
spedico - 09.01.2012
pawn Код:
public VitaAuto(vehicleid)
{
new Float:V;
GetVehicleHealth(vehicleid, V);
return V;
}
Re: Help, Warning -
Fires - 09.01.2012
Same problem...
Re: Help, Warning -
sGarfield - 09.01.2012
pawn Код:
forward Float:VitaAuto(vehicleid);
public Float:VitaAuto(vehicleid)
{
static Float:V;
V = GetVehicleHealth(vehicleid);
return V;
}
Re: Help, Warning -
Konstantinos - 09.01.2012
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;
}
Re: Help, Warning -
sGarfield - 09.01.2012
pawn Код:
forward Float: ViteVeh(v);
public Float: ViteVeh(v)
{
new Float: Veh;
GetVehicleHealth(v,Veh);
return Float: Veh;
}
Finish!