[Ajuda] Erro - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Erro (
/showthread.php?tid=658272)
Erro -
HelderPT - 31.08.2018
Codigo
PHP код:
stock Float:GetVehicleHealthEx(vehicleid)
{
new Float:health;
GetVehicleHealth(vehicleid, health);
if ( health > 900.0) {
return health / 10.0;
}
else return ( health / 10.0 )-(24);
}
Nome do erro
PHP код:
warning 208: function with tag result used before definition, forcing reparse
Re: Erro -
SIZET - 31.08.2018
Uma dica й vocк colocar essa funзгo mais pro topo do GM. Ou Seja mais pra cima de onde vocк ta usando a funзгo GetVehicleHealthEx
Outra dica de otimizaзгo й retirar o stock й deixar apenas
Float:GetVehicleHealthEx(vehicleid) stock й sу para n dar warnings. se tiver usando uma GM Base RPG ou qualquer outra apague os stocks e veja o monte de warnings xd
~>
PHP код:
Float:GetVehicleHealthEx(vehicleid)
{
new Float:health;
GetVehicleHealth(vehicleid, health);
if(health > 900.0)
{
return health / 10.0;
}
else return (health / 10.0)-(24);
}
Re: Erro -
HelderPT - 31.08.2018
Qm estiver tendo o msm problema usem assim
forward Float: GetVehicleHealthEx(vehicleid);
Float:GetVehicleHealthEx(vehicleid)
{
new Float:health;
GetVehicleHealth(vehicleid, health);
if(health > 900.0)
{
return health / 10.0;
}
else return (health / 10.0)-(24);
}
funfou aq