Problema com 2 Errors!
#1

Entгo, to com problema com 2 errors na hora de compilar!
Aqui os erros:

Код:
(13974) : error 021: symbol already defined: "strtok"
(13989) : error 047: array sizes do not match, or destination array is too small
Aqui as linhas dos erros:

13973 << postei essa linha porque na linha do erro (13974) sу tem um { '-'
pawn Код:
strtok(const string[], &index)
13974:
pawn Код:
{
13989:
pawn Код:
return result;

Agora o codigo todo:

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;
}
Reply


Messages In This Thread
Problema com 2 Errors! - by Bruno Pereira - 08.01.2011, 20:11
Re: Problema com 2 Errors! - by Diogo_braz - 08.01.2011, 20:19
Re: Problema com 2 Errors! - by Ricop522 - 08.01.2011, 20:25
Re: Problema com 2 Errors! - by Bruno Pereira - 08.01.2011, 20:32
Re: Problema com 2 Errors! - by Diogo_braz - 08.01.2011, 20:42
Re: Problema com 2 Errors! - by Bruno Pereira - 08.01.2011, 20:51
Respuesta: Problema com 2 Errors! - by RodiauOUI - 08.01.2011, 21:13
Re: Problema com 2 Errors! - by [FeK]Knife - 08.01.2011, 21:18
Re: Problema com 2 Errors! - by Bruno Pereira - 08.01.2011, 23:08
Re: Problema com 2 Errors! - by rjjj - 09.01.2011, 02:08

Forum Jump:


Users browsing this thread: 1 Guest(s)