[AJUDA]ERROS.
#1

ERROS:

Quote:

C:\Documents and Settings\Marcos Goulart\Desktop\pawno\gamemodes\CGU123.pwn(864) : error 021: symbol already defined: "strtok"
C:\Documents and Settings\Marcos Goulart\Desktop\pawno\gamemodes\CGU123.pwn(877) : error 047: array sizes do not match, or destination array is too small
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

Linha 864:

pawn Код:
{
'-'
Linha anterior:
pawn Код:
strtok(const string[], &index)
Linha posterior:
pawn Код:
new length = strlen(string);
Linha 877:

pawn Код:
return result;
helpppppa.
Reply
#2

Isto deve resolver o seu problema .


Basta apagar do seu GameMode, todo o cуdigo indicado abaixo :


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

Espero ter ajudado .
Reply
#3

valeeu '-'
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)