I CHANGED BACK TO VISUAL BASIC 6
Alright I started working on this and so far alright but I ran into a problem..
CODE
Public Const gameServerIP As String = "64.237.54.237"
Public Const gameServerPort As String = "27015"
From what I was told that should work but for some reason its coming up with the error
Compile error:
Constants, fixed-length strings, arrays, user-defined types and Declare statements not allowed as Public members of object modules.
Here is the whole code
CODE
Option Explicit
Const ControlChar = "ÿÿÿÿ"
Dim T As Long
Dim Pinging As Boolean
Dim Done As Boolean
Dim Players As Boolean
Public Const gameServerIP As String = "64.237.54.237"
Public Const gameServerPort As String = "27015"
Public Type tpServerSettings
Name As String
Players As Integer
MaxPlayers As Integer
Map As String
Type As String
PlayerList As String
Ping As Long
End Type
This post has been edited by insane1: 22 Feb, 2007 - 05:38 PM