vb6 - Overflow in visual basic 6 -
i have game server, , problem on error overflow 6.
debug:
if spell(spellnum).end > 0 tempplayer(index).end = getplayerstat(index, endurance) setplayerstat index, endurance, getplayerstat(index, endurance) + spell(spellnum).end sendstats index end if
debug highlighted:
tempplayer(index).end = getplayerstat(index, endurance)
what kind of return on line:
getplayerstat(index, endurance)
you can check type of return , allocation? when have problems overflow trying put number "long" (high value) in variable of type "integer" or "single" example.
Comments
Post a Comment