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

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -