Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Whats wrong with this?


andy200129
 Share

Recommended Posts

Hello ok before eclipse stable ect disapeard i made a multiple server thing that your able to add more servers on 1 client  what worked on eclipse stable and 7.5 this was the code for eclipse evo or so
Hosted on 1 pc

>! Dim IP As String, Port As String
    Dim fErr As Integer
>!     Port = Val(0000)
>!     fErr = 0
    If fErr = 0 And Port <= 0 Then
        fErr = 1
        Call MsgBox("Please Fix The Port!", vbCritical, GAME_NAME)
        Exit Sub
    End If
    If fErr = 0 Then
        Call WriteINI("IPCONFIG", "PORT", 0000, (App.Path & "\config.ini"))
    End If
    Call TcpDestroy
>!     frmStable.Socket.RemotePort = 0000

hosted on 2 pcs

>! Dim IP As String, Port As String
    Dim fErr As Integer
>!     IP = 000.000.000
    Port = Val(0000)
>!     fErr = 0
    If fErr = 0 And Len(Trim$(IP)) = 0 Then
        fErr = 1
        Call MsgBox("Please Fix The IP!", vbCritical, GAME_NAME)
        Exit Sub
    End If
    If fErr = 0 And Port <= 0 Then
        fErr = 1
        Call MsgBox("Please Fix The Port!", vbCritical, GAME_NAME)
        Exit Sub
    End If
    If fErr = 0 Then
        Call WriteINI("IPCONFIG", "IP", 000.000.000, (App.Path & "\config.ini"))
        Call WriteINI("IPCONFIG", "PORT", 0000, (App.Path & "\config.ini"))
    ' Call MenuState(MENU_STATE_IPCONFIG)
    End If
    Call TcpDestroy
    frmStable.Socket.RemoteHost = 000.000.000
    frmStable.Socket.RemotePort = 0000

i modified it and looked throug eo classes ect
but the WritteINI had an error and i cant find why does any one know what could be wrong

>! Dim IP As String, Port As String
    Dim fErr As Integer
>!     Port = Val(7001)
>!     fErr = 0
    If fErr = 0 And Port <= 0 Then
        fErr = 1
        Call MsgBox("Please Fix The Port!", vbCritical)
        Exit Sub
    End If
    If fErr = 0 Then
        Call WriteINI("IPCONFIG", "PORT", 7001, (App.Path & "\Data Files\config.ini"))
    End If
    Call TcpDestroy
>!     frmMain.Socket.RemotePort = 7001
Link to comment
Share on other sites

once i have the Eo version done im going to keep the ee version but add eo to my tutorial page ect for people to use to make there game better thanks for the help i will do that now u all been helpfull i will credit ur names on the eo version :)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...