PDA

View Full Version : data type


jim_yang
04-20-2008, 21:32
why some natives use different data type to deal with a float data?

in fun.cpp

pPlayer->v.armorvalue = param;

then

pPlayer->v.health = float(param);

both params are int type, but armorvalue and health are float type.

can someone explain this ? thanks