DarkScythe57 Posted February 13, 2012 Author Share Posted February 13, 2012 I did a few edits in my server using Visual basic 6 and when I try to compile everything together I get this Compile Error: Fixed or Static data can't be larger then 64k. It is referring to to this codePrivate Type PlayerRec ' Account Login As String * ACCOUNT_LENGTH Password As String * NAME_LENGTH ' General Name As String * ACCOUNT_LENGTH Sex As Byte Class As Long Sprite As Long Level As Byte Hair As Long exp As Long Access As Byte PK As Byte ' Vitals Vital(1 To Vitals.Vital_Count - 1) As Long ' Stats Stat(1 To Stats.Stat_Count - 1) As Byte POINTS As Long ' Worn equipment Equipment(1 To Equipment.Equipment_Count - 1) As Long ' Inventory Inv(1 To MAX_INV) As PlayerInvRec Spell(1 To MAX_PLAYER_SPELLS) As Long ' Hotbar Hotbar(1 To MAX_HOTBAR) As HotbarRec ' Position Map As Long x As Byte y As Byte Dir As Byte 'ALATAR PlayerQuest(1 To MAX_QUESTS) As PlayerQuestRec '/ALATAREnd TypePlease HELP ME! I AM USING EO AND VISUAL BASIC 6 ENTERPRISE EDITION Link to comment Share on other sites More sharing options...
Robin Posted February 13, 2012 Share Posted February 13, 2012 Sounds like you set your UDTs too big. What are your MAX_ values set to?You'll get this error if a static value is over 64,000 bytes. Works fine if you dynamically create it, though. Link to comment Share on other sites More sharing options...
DarkScythe57 Posted February 13, 2012 Author Share Posted February 13, 2012 @Robin:> Sounds like you set your UDTs too big. What are your MAX_ values set to?> > You'll get this error if a static value is over 64,000 bytes. Works fine if you dynamically create it, though.how do i check that? Link to comment Share on other sites More sharing options...
The New World Posted February 13, 2012 Share Posted February 13, 2012 _modConstants_, you'll have multiple variables starting with the prefix MAX_ Link to comment Share on other sites More sharing options...
Robin Posted February 13, 2012 Share Posted February 13, 2012 Go to the code you added and remove it. Link to comment Share on other sites More sharing options...
DarkScythe57 Posted February 13, 2012 Author Share Posted February 13, 2012 It is okay guys, me and my friends have decided to start the game all over again with new features and stuff. Thanks! 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