Error - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Error (
/showthread.php?tid=68114)
Error -
Dreftas - 07.03.2009
pawn Код:
..
new Float:vhealth;
GetVehicleHealth(vehid,vhealth);
dock_pay = vhealth * (modelid*0,65) + vehid + 3000;
I got error on line
dock_pay = vhealth * (modelid*0,65) + vehid + 3000;
Error is "Tag mismath". If i change vhealth with other number error disappear, but i need that that will be car hp number, how to do it ?
Re: Error -
ICECOLDKILLAK8 - 07.03.2009
dock_pay needs to be a Float, So instead of this
you need to do this
Re: Error -
Dreftas - 07.03.2009
Quote:
Originally Posted by JeNkStAX
dock_pay needs to be a Float, So instead of this
you need to do this
|
Then doesn't work this:
pawn Код:
GivePlayerMoney(playerid,dock_pay);
Also Tag mismatch..
Re: Error -
[RP]Rav - 07.03.2009
Код:
dock_pay = floatround(vhealth * modelid * 0.65 + vehid + 3000);