Thread

Visual Basic Compile Error (Sdk)

Visual Basic Compile Error // Sdk

1  |  

mike zimmer

Jul 1, 2002, 6:27am
When I go to compile, i get the error

Compile Error
Wrong number of arguments or invalid property assignment.

Here is the sub that it is in...

Private Sub cmdLogin_Click()
Dim rc As Integer, world As String
On Error Resume Next

rc = sdk.AwCreate(0, 0)
If rc Then
MsgBox "Unable to create a bot (reason " & rc & ")"
Exit Sub
End If

sdk.AwLoginOwner = txtOwner.Text
sdk.AwLoginPrivilegePassword = txtPassword.Text
sdk.AwLoginName = txtBotName.Text
sdk.AwLoginApplication = "bot"
rc = sdk.AwLogin
If rc Then
MsgBox "Unable to login (reason " & rc & ")"
Exit Sub
End If
world = txtWorld.Text
rc = sdk.AwEnter(world, 1)
If rc Then
MsgBox "Unable to enter " & world & " (reason " & rc & ")"
Exit Sub
Else
MsgBox sdk.AwWorldWelcomeMessage
End If

sdk.AwMyX = 0
sdk.AwMyZ = 0
sdk.AwMyY = 0
sdk.AwMyYaw = 0
sdk.AwMyType = 0

rc = sdk.AwStateChange
If rc Then
MsgBox "Unable to change state (reason " & rc & ")"
Exit Sub
Else
cmdKillBot.Enabled = True
cmdLogin.Enabled = False
End If
End Sub


End Sub

mike zimmer

Jul 1, 2002, 6:31am
Oh and it highlights..

..AwEnter

[View Quote]

grimble

Jul 1, 2002, 7:20am
Did you look at the help files before asking? Obviously not.

http://www.grimmsoft.com/help/index.php?parent=1&item=24&expand=2

or

http://www.activeworlds.com/sdk/aw_enter.htm




[View Quote]

1  |  
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2024. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn