Strtok - erro
#1

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;
}
Код:
error: 021: symbol already defined: "strtok" (Linha acima /\)
error: 047: array sizes do not match, or destination array is too small (	return result;)
error: 047: array sizes do not match, or destination array is too small ( 	cmd = strtok(cmdtext, idx); )
error: 047: array sizes do not match, or destination array is too small (  tmp = strtok(cmdtext, idx); )
error: 047: array sizes do not match, or destination array is too small (  tmp = strtok(cmdtext, idx); )
array sizes do not match, or destination array is too small (  tmp = strtok(cmdtext, idx); )
error: 047: array sizes do not match, or destination array is too small (  tmp = strtok(cmdtext, idx); )
error: 047: array sizes do not match, or destination array is too small(  tmp = strtok(cmdtext, idx); )
error: 047: array sizes do not match, or destination array is too small(  tmp = strtok(cmdtext, idx); )
error: 047: array sizes do not match, or destination array is too small(  tmp = strtok(cmdtext, idx); )
error: 047: array sizes do not match, or destination array is too small(  tmp = strtok(cmdtext, idx); )
error: 047: array sizes do not match, or destination array is too small(  tmp = strtok(cmdtext, idx); )
error: 047: array sizes do not match, or destination array is too small(  tmp = strtok(cmdtext, idx); )
error: 047: array sizes do not match, or destination array is too small(  tmp = strtok(cmdtext, idx); )
error: 047: array sizes do not match, or destination array is too small(  tmp = strtok(cmdtext, idx); )
error: 047: array sizes do not match, or destination array is too small(  tmp = strtok(cmdtext, idx); )
error: 047: array sizes do not match, or destination array is too small(  tmp = strtok(cmdtext, idx); )
error: 047: array sizes do not match, or destination array is too small(  tmp = strtok(cmdtext, idx); )
error: 047: array sizes do not match, or destination array is too small(  tmp = strtok(cmdtext, idx); )
error: 047: array sizes do not match, or destination array is too small(  tmp = strtok(cmdtext, idx); )
error: 047: array sizes do not match, or destination array is too small(  tmp = strtok(cmdtext, idx); )
error: 047: array sizes do not match, or destination array is too small(  tmp = strtok(cmdtext, idx); )
error: 047: array sizes do not match, or destination array is too small(  tmp = strtok(cmdtext, idx); )
error: 047: array sizes do not match, or destination array is too small(  tmp = strtok(cmdtext, idx); )
error: 047: array sizes do not match, or destination array is too small(  tmp = strtok(cmdtext, idx); )
error: 047: array sizes do not match, or destination array is too small
Reply


Messages In This Thread
Strtok - erro - by Ricop522 - 30.11.2010, 21:08
Re: Strtok - erro - by [Ips]Guh - 30.11.2010, 21:11
Re: Strtok - erro - by Ricop522 - 30.11.2010, 21:52
Re: Strtok - erro - by Kasura - 01.12.2010, 00:00
Re: Strtok - erro - by ipsBruno - 01.12.2010, 00:46
Re: Strtok - erro - by ipsBruno - 01.12.2010, 00:48
Re: Strtok - erro - by Andre_Elite - 01.12.2010, 07:48
Re: Strtok - erro - by TiagoPS - 01.12.2010, 11:54

Forum Jump:


Users browsing this thread: 1 Guest(s)