or3o Posted September 5, 2012 Author Share Posted September 5, 2012 Alright first off thanks for taking the time to even bother reading this question. Ive been working on adding a craft system to my game for a while now and i have run into a little problem.basically in the player rec i added```Craft as long```and added a whole use craft sub. and in the item sub it says```craftnum = player(index).craftitem1 = item(craftnum).data1 ```for some reason even when i have player.craft set at a number higher than 0 it still says craftnum = 0\. Thanks agian for checking this out Link to comment Share on other sites More sharing options...
Growlith1223 Posted September 5, 2012 Share Posted September 5, 2012 because ur not sending that new data?Try adding a new packet(if you don't have a packet sending) with something like```Set Buffer = clsBufferBuffer.WriteLong CCraft(or whatever)Buffer.Write(data type) Player(Index).CraftSet Buffer = Nothing```idk right now, i can't work on ANYTHING vb6 related…(go figure)all i know is that it's not sending the data. Link to comment Share on other sites More sharing options...
or3o Posted September 5, 2012 Author Share Posted September 5, 2012 i edited the packet because i had that wrong but im still having an issue```craftnum = getplayercraft(index)```for some reason it still says craftnum = 0 but on the other side where it says index it shows the right number :/ Link to comment Share on other sites More sharing options...
Growlith1223 Posted September 5, 2012 Share Posted September 5, 2012 is it giving an error?elsethat's how it's supposed to be, try breaking on a line just after that one then hover over craftnum Link to comment Share on other sites More sharing options...
or3o Posted September 5, 2012 Author Share Posted September 5, 2012 its a rte 9 subscript outta range and directly below it```item1 = item(craftnum).data1 ```is highlighted and its highlighted because it says craftnum = 0 and if i replace the word craft num with say a 1 then it uses item 1 just as i had intended :/does it matter that i am using a button on the client side to set the players craft to a number?basically in my buttons click i just put player(myindex).craft = 1 Link to comment Share on other sites More sharing options...
Growlith1223 Posted September 5, 2012 Share Posted September 5, 2012 hm…Do you have Teamviewer? Link to comment Share on other sites More sharing options...
or3o Posted September 5, 2012 Author Share Posted September 5, 2012 yea i do lol gimmed a sec gotta find it 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