czarli Posted November 1, 2015 Author Share Posted November 1, 2015 Hi,I have a problem with EO3, on spam skills server have a Run-time 6 Overflow… :(If Spell(spellnum).END > 0 ThenTempPlayer(Index).END = GetPlayerStat(Index, Endurance)SetPlayerStat Index, Endurance, GetPlayerStat(Index, Endurance) + Spell(spellnum).ENDSendStats IndexEnd IfVisual debug highlighted TempPlayer(Index).END = GetPlayerStat(Index, Endurance) Link to comment Share on other sites More sharing options...
Mohenjo Daro Posted November 1, 2015 Share Posted November 1, 2015 Did you program any tutorials or changes in the engine? If you did change the code for the engine, then recompile the client and server with VB6 (file drop down menu) and delete the server data. Link to comment Share on other sites More sharing options...
Genusis Posted November 1, 2015 Share Posted November 1, 2015 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 More sharing options...
GalacticGlum Posted November 1, 2015 Share Posted November 1, 2015 What's the max your end stat can hold? If your end stat is for example a int than TempPlayer(Index).END must be an int otherwise like Genusis said it'll give you that error. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now