14.09.2009, 09:06
I really suggest you to stop to make such weird things like
and start to use sscanf.
I've seen a lot of people doing like that, and I don't understand them all.... so it's not related only to you.
pawn Код:
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
{
I've seen a lot of people doing like that, and I don't understand them all.... so it's not related only to you.