18-09-2008, 09:33 PM
GIAKEN Wrote:This makes things a lot better.
However, all command handling should be in the server. You could send a packet like:
Code:packet = "commands" & SEP_CHAR & Command(0)
If UBound(Command) > 0 Then
packet = packet & SEP_CHAR & UBound(Command(0))
For i = 1 To UBound(Command)
packet = packet & SEP_CHAR & Command(i)
Next i
Else
packet = packet & SEP_CHAR & 0
End If
packet = packet & END_CHAR
Server would do:
Code:Select Case Parse$(1)
If Val(Parse$(2)) = 0 Then
Case "/help"
'seperate the commands that are only single
End If
If Val(Parse$(2)) = 1 Then
'seperate the commands that have a second parameter
Case "/mute"
End If
End Select
Something like that...thoughts?
I could go for a banana right now.
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?