Save health - 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: Save health (
/showthread.php?tid=373273)
Save health -
CJoao - 29.08.2012
Код:
C:\Users\Patch\Desktop\RedCounty RolePlay\Server\gamemodes\RP.pwn(24771) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
pawn Код:
new Float:health;
GetVehicleHealth(vehicleid, health);
DynamicCars[idx][cHealth] = health; //<--- Line 24771
Re: Save health -
cosbraa - 29.08.2012
Did you declare cHealth as a Float in your enum?
Re: Save health -
Ranama - 29.08.2012
just do it:
Код:
GetVehicleHealth(vehicleid, DynamicCars[idx][cHealth]);
//why doing one more variable when you can save it directly?
and as cosbraa said, "Did you declare cHealth as a Float in your enum?"
Re: Save health -
CJoao - 29.08.2012
Quote:
Originally Posted by cosbraa
Did you declare cHealth as a Float in your enum?
|
Nop, Thx work's now
rep+