View Single Post
  #1  
Old 02-25-2002, 09:48 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Question Strange behaviour of a variable :/

client.attrib.hp is 9999, here.
NPC Code:

hp = strtofloat(#s(client.attrib.hp));
setplayerprop #c,#v(hp) #v(strtofloat(#s(client.attrib.hp)));



Result: "1807 9999"
Are "hp"-variables limited somehow?
The hp thingie is acting as if I did hp = strtofloat(#s(client.attrib.hp))%2048;

Strangely, the mp are working fine, though using the very same thingie.
Reply With Quote