17-06-2008, 11:42 PM
It was something like...
It's strange, this doesn't work if there is only one character online and you try and log in with that same character. But if there are more than 1 characters, all clients crash if you try to log in twice.
Code:
For i = 1 to max_players
If IsPlaying(i) Then
If GetPlayerName(Index) = GetPlayerName(i) Then
AlertMsg "Character already logged in"
Exit Sub
End If
End If
Next i
It's strange, this doesn't work if there is only one character online and you try and log in with that same character. But if there are more than 1 characters, all clients crash if you try to log in twice.