VB.Net Proxy - botchecks_mdl fixing

01/11/2008 01:43 NovaCygni#1
ok i edit cause old problem solved :) New problem though :(
Code:
Module mdl_Proxy
 recv_key(1, 256)
Global send_key(1, 256)
Global cl_recv_countr(1), cl_send_countr(1), sv_send_countr(1), sv_recv_countr(1)
Global listen_port, server_ip, server_port, game_port, game_ip
Global keye3, keye4
Global first_game_packet, first_game_packet2
    Global g_accid
    Dim tpr As String
Global skill_time, jump_time, b1
Global invent(5000), invent_count
    Private Declare Function Beep Lib "kernel32" (ByVal dwFreq As Long, ByVal dwDuration As Long) As Long
    Private Declare Function timeGetTime Lib "winmm.dll" () As Long
    Public Declare Function WriteProcessMemory Lib "kernel32" (ByVal hProcess As Long, ByVal lpBaseAddress As Object, ByVal lpBuffer As Object, ByVal nSize As Long, ByVal lpNumberOfBytesWritten As Long) As Long
Global prv_plyr
Global globalBCrecv
Global bc(20, 3)
All the globals are wrong, there supposed to be declaring function names but how would I do this in VB.Net? I mean instead of Global it should be what?
01/11/2008 03:55 NovaCygni#2
Quote:
Originally Posted by NovaCygni View Post
ok i edit cause old problem solved :) New problem though :(
Code:
Module mdl_Proxy
 recv_key(1, 256)
Global send_key(1, 256)
Global cl_recv_countr(1), cl_send_countr(1), sv_send_countr(1), sv_recv_countr(1)
Global listen_port, server_ip, server_port, game_port, game_ip
Global keye3, keye4
Global first_game_packet, first_game_packet2
    Global g_accid
    Dim tpr As String
Global skill_time, jump_time, b1
Global invent(5000), invent_count
    Private Declare Function Beep Lib "kernel32" (ByVal dwFreq As Long, ByVal dwDuration As Long) As Long
    Private Declare Function timeGetTime Lib "winmm.dll" () As Long
    Public Declare Function WriteProcessMemory Lib "kernel32" (ByVal hProcess As Long, ByVal lpBaseAddress As Object, ByVal lpBuffer As Object, ByVal nSize As Long, ByVal lpNumberOfBytesWritten As Long) As Long
Global prv_plyr
Global globalBCrecv
Global bc(20, 3)
All the globals are wrong, there supposed to be declaring function names but how would I do this in VB.Net? I mean instead of Global it should be what?
updated Query
01/11/2008 07:08 ChrisR872#3
Not sure if you have noticed. But almost all the variables in that program are undeclared etc. Also a lot of these are easy fixes so please refer to vb.net forums for assistance.
01/11/2008 17:04 NovaCygni#4
Quote:
Originally Posted by ChrisR872 View Post
Not sure if you have noticed. But almost all the variables in that program are undeclared etc. Also a lot of these are easy fixes so please refer to vb.net forums for assistance.
vb.net forums? you mean the MSDN one? I Use that but little help from there,, I go read again book about declaring variables.