Posts: 6,242
Threads: 8
Joined: Jun 2008
Quote:
Originally Posted by !R1Ch@rD!
I put these 2 works or you have it on?
pawn Код:
#pragma unused ret_memcpy
strock
pawn Код:
strtok(const string[], &index) { new length = strlen(string); while ((index < length) && (string[index] <= ' ')) { index++; }
new offset = index; new result[20]; while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1))) { result[index - offset] = string[index]; index++; } result[index - offset] = EOS; return result; }
you can look good
Strock use
|
Posting up pure fixes without any "need" for reading, doesn't teach people anything except copy and paste.
The problem is his code, and he needs to read it to find it, and to fix it he must know how to script.
By doing it for him, you end up with a "scripter" who can't read code, nor write it.