Tashology Posted August 8, 2016 Author Share Posted August 8, 2016 Hello,I am trying to program a system which will save an owner for each map. I have added the variable .MapOwner to both the server and the client but it just won't load or save it and whenever I try to save the map owner, the client crashes.Any advice on how to add extra Map variables?Thanks! Link to comment Share on other sites More sharing options...
Mohenjo Daro Posted August 8, 2016 Share Posted August 8, 2016 Well, if you don't want to do any programming, you can use events and the variables there. I'm a bit rusty on which variables are which but you should be able to use them. If you're hard set on programming then someone else can help you with the packets better than I can. Link to comment Share on other sites More sharing options...
Tashology Posted August 8, 2016 Author Share Posted August 8, 2016 Ideally I'd want to program it because that way it's a bit easier when it comes to storage (plus given the fact that it would be easier to make each map store the owner's username and recall it). Link to comment Share on other sites More sharing options...
PD Posted August 8, 2016 Share Posted August 8, 2016 Have you tried deleting the maps? Link to comment Share on other sites More sharing options...
Tashology Posted August 9, 2016 Author Share Posted August 9, 2016 I didn't try that, will the server remake the maps automatically? Link to comment Share on other sites More sharing options...
Growlith1223 Posted August 9, 2016 Share Posted August 9, 2016 Yes it will, it'll create completely blank maps Link to comment Share on other sites More sharing options...
Tashology Posted August 9, 2016 Author Share Posted August 9, 2016 I tried it and I keep getting the same error - Something to do with Map Blocks…Any ideas?EDIT: I've removed all of the ownership stuff and it's still getting that issue when I try to log in. I can no longer do anything. Link to comment Share on other sites More sharing options...
PD Posted August 9, 2016 Share Posted August 9, 2016 Make sure you delete the maps in both the client and server folders. Also where are you getting the error? Client or server-side? Run both in the IDE and screenshot the error. Link to comment Share on other sites More sharing options...
Tashology Posted August 9, 2016 Author Share Posted August 9, 2016 I get a subscript out of range error on the following sub:(Highlighting the ">>" line)```Public Sub UpdateMapBlock(mapnum, x, y, blocked As Boolean)   If blocked Then    MapBlocks(mapnum).Blocks(x, y) = 9  Else >> MapBlocks(mapnum).Blocks(x, y) = 0  End IfEnd Sub```And yeah, I deleted the maps in both folders. Link to comment Share on other sites More sharing options...
Growlith1223 Posted August 9, 2016 Share Posted August 9, 2016 Could you specify which error exactly it is? saying you get an error doesn't help you or the ones helping you in succeeding in doing so. Link to comment Share on other sites More sharing options...
Tashology Posted August 9, 2016 Author Share Posted August 9, 2016 I said, it's a subscript out of range error 9.Meaning that a variable is passed to an out-of-bounds specified array. Link to comment Share on other sites More sharing options...
Growlith1223 Posted August 9, 2016 Share Posted August 9, 2016 oh my bad lol, didn't see you said what it was in the post above mine(woke up like 20 mins ago so my bad)Anywho, i would try looking at the values of mapnum, x, and y, and make sure that they aren't abnormal. afterwards, if this is the client, i would try seeing what the server is sending out first, if it's the server crashing, check what the client is sending out Link to comment Share on other sites More sharing options...
ankatarf Posted September 27, 2016 Share Posted September 27, 2016 ?????? ??????? ??? ??????????? [?????? ?????????? ?????????? ? ??????? ????????????](http://notyi-stroynosti.ru) ?????????? ?????????? ? ??????? ??????? [??????? ? ?????? ?????? ????](http://zvuki-stroynosti.ru) Link to comment Share on other sites More sharing options...
Lovelly Posted September 28, 2016 Share Posted September 28, 2016 Hello, I'm brazilian, then… sorry my Bad English.You Want made one "Player OwnerMap System", like -> House System,Learn First a USING Commands -- GetVar and PutVar.Only need made this save in one Blank Note in Server, to Save and Load, and Check too, if the player is a owner of maps.Using Put i will save the values in the blank setted, and using Get will search for the variable in the note saved.Is really simple to made that. 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