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

[EO]2.0 What is wrong with this code?


DnC Games
 Share

Recommended Posts

ok here is some code that is all server side it adds an item give system to the server like the pic below
but when i go to use it it give me an error but still compile

RTE: 13
type mismatch
this is in debug mode

[![](http://img27.imageshack.us/img27/9027/errorrq.png)](http://img27.imageshack.us/i/errorrq.png/)

```
Private Sub scrlGivePlayerItem_Change()
myLblItemNum.Caption = "Item: " & scrlGivePlayerItem.Value
End Sub
```
```
Private Sub scrlMyItemAmount_Change()
myLblitemAmmount.Caption = "Amount: " & scrlMyItemAmount.Value
End Sub
```
```
Private Sub cmdGivePlayerItem_Click()
Dim PlayerName4Item As String
Dim PlayerSpecialItem As Byte
Dim PlayerSpecialAmount As Byte

txtPlayersNameForItem.Text = PlayerName4Item
scrlGivePlayerItem.Value = PlayerSpecialItem
scrlMyItemAmount.Value = PlayerSpecialAmount

Call GiveInvItem(PlayerName4Item, PlayerSpecialItem, PlayerSpecialAmount, True)

End Sub
```
and this is what the server window looks like

[![](http://img9.imageshack.us/img9/8059/serverlook.png)](http://img9.imageshack.us/i/serverlook.png/)

so if any one can tell me how to fix this that would be great thanks
Link to comment
Share on other sites

i changed the byte to long like this and i still get the same mismatch error 13

```
Private Sub cmdGivePlayerItem_Click()
Dim PlayerName4Item As String
Dim PlayerSpecialItem As Long
Dim PlayerSpecialAmount As Long

txtPlayersNameForItem.Text = PlayerName4Item
scrlGivePlayerItem.Value = PlayerSpecialItem
scrlMyItemAmount.Value = PlayerSpecialAmount

Call GiveInvItem(PlayerName4Item, PlayerSpecialItem, PlayerSpecialAmount, True)

End Sub
```
please someone help me
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...