Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Overflow


czarli
 Share

Recommended Posts

Hi,

I have a problem with EO3, on spam skills server have a Run-time 6 Overflow… :(

If Spell(spellnum).END > 0 Then
TempPlayer(Index).END = GetPlayerStat(Index, Endurance)
SetPlayerStat Index, Endurance, GetPlayerStat(Index, Endurance) + Spell(spellnum).END
SendStats Index
End If

Visual debug highlighted TempPlayer(Index).END = GetPlayerStat(Index, Endurance)
Link to comment
Share on other sites

The overflow simply means that getplayerstat is returning a value larger than what TempPlayer(Index).END can hold. A way to fix this would be to change the variable End to something that can hold a larger value. for example a byte can not hold more than 255\. so if you are using a byte for END you might want to switch it to a integer or a long based on the size you truly need it to hold.

http://www.developerfusion.com/article/32/data-types/
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...