muzamilsumra Posted November 5, 2016 Share Posted November 5, 2016 Hello, could someone guide me on what ma i doing wrong here as my game hangs with this code. Public Class VehicleCounter 'Declarations Public vehicles As Vehicle() Public Veh As Vehicle Dim VehCount As Integer Public Sub New() Me.Interval = 10 End Sub Shadows Sub keydown(ByVal sender As Object, ByVal e As KeyEventArgs) Handles MyBase.KeyDown If e.KeyCode = Keys.K Then vehicles = World.GetNearbyVehicles(Game.Player.Character.Position, 50) VehCount = vehicles.Count UI.Notify(vehicles.count) ElseIf e.KeyCode = Keys.J Then Game.Player.WantedLevel = 0 End If End Sub Private Sub general_tick(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Tick End Sub End Class Link to comment Share on other sites More sharing options...
muzamilsumra Posted November 8, 2016 Author Share Posted November 8, 2016 Hey Guys, does it mean that this forums are quite dead? 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