Quote:
Originally Posted by ProIcons
ehm , lets say
that your variable that the socket stores the new data is
data[900]
you can simple do it with
server_print("%s\n\r",data)
|
He wanted to find separate lines within the variable.
Example:
Code:
new data[128];
copy(data, charsmax(data), "oh, line #1^r^nline #2^r^nand look like #3!^r^n^r^na blank line betwen!");
To find those you would use the ExplodeString() like he did or this:
Code:
new line[32];
while(data[0])
{
strtok(data, line, charsmax(line), data, charsmax(data), '^n');
// line variable is one of those lines.
}
__________________