在函数上执行循环? VB.NET

时间:2016-06-03 18:40:24

标签: vb.net

好吧,伙计们,我有一个问题。我想以一个特殊的间隔循环这个函数,比方说每300毫秒。 (这是我要循环的SigOnState函数)。问题是你不能在没有返回类型的情况下遍历函数,如果我在SigOnState中返回2行,它会给我一个错误,说找不到pEnginePointer(图片:Check Problem)..请帮助我出去了!

Public Function SigOnState() As Integer
    Dim pEnginePointer = Mem.ReadInt(bEngine + oEngine, 4)
    Return Mem.ReadInt(pEnginePointer + &H100, 4)
End Function

Public Function IsInGame() As Boolean
    Return SigOnState() = 6 'If player is connected to a server.
End Function

0 个答案:

没有答案