SA-MP Forums Archive
[AJUDA]ERROS. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA]ERROS. (/showthread.php?tid=267332)



[AJUDA]ERROS. - FreeGells - 08.07.2011

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.


Re: [AJUDA]ERROS. - rjjj - 08.07.2011

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 .


Re: [AJUDA]ERROS. - FreeGells - 08.07.2011

valeeu '-'