Quarter86 Posted January 2, 2009 Posted January 2, 2009 (edited) i am mpdifying the cobra 0.3.6 messenger to fit my needs. but there is still a small bug which shows every offline user as Administtrator instead of the actual offline user. here is the code which diyplays the users status and the name. $Split = StringSplit($Data," ") If $Split[0] = 2 Then For $i = 0 to $MaxConnections-1 If ($Index[$i] > -1) AND $Email[$Index[$i]] = $Split[2] Then ; User is online. TCPSend($Socket[$n],$ACKNOWLEDGE & " " & $DispName[$Index[$i]]) ExitLoop ElseIf $i = $MaxConnections-1 Then ; User is offline. TCPSend($Socket[$n],$DENIAL & " " & $DispName[$Index[$i]]) EndIf Next Else TCPSend($Socket[$n],$ERROR) EndIf Edited January 2, 2009 by Quarter86
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now