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

I know this is noob stuff[Solved]


or3o
 Share

Recommended Posts

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).craft

item1 = 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

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 = clsBuffer

Buffer.WriteLong CCraft(or whatever)

Buffer.Write(data type) Player(Index).Craft

Set 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

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

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

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...