Save health
#1

Код:
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
Reply
#2

Did you declare cHealth as a Float in your enum?
Reply
#3

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?"
Reply
#4

Quote:
Originally Posted by cosbraa
Посмотреть сообщение
Did you declare cHealth as a Float in your enum?
Nop, Thx work's now rep+
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)