SA-MP Forums Archive
[AJUDA] Erro Orgs - 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] Erro Orgs (/showthread.php?tid=294675)



[AJUDA] Erro Orgs - .CrazZy._.[De] - 02.11.2011

Bom, esses dias aн estava procurando, algum sistema de orgs... sу esse aqui que realmente deu certo. Sу que estб com 2 erros.

Aqui o FS: https://sampforum.blast.hk/showthread.php?tid=292200

pawn Код:
(2).pwn(724) : error 021: symbol already defined: "strtok"
(2).pwn(739) : error 047: array sizes do not match, or destination array is too small

2 Errors.
Erro da linha:
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;
}
Ajudem plis


Re: [AJUDA] Erro Orgs - Dolby - 02.11.2011

Vocк ja tem Strtok definida,apague esta que vocк mandou ai e tente.


Re: [AJUDA] Erro Orgs - .CrazZy._.[De] - 02.11.2011

Quote:
Originally Posted by Gustavo_Araujo
Посмотреть сообщение
Vocк ja tem Strtok definida,apague esta que vocк mandou ai e tente.
Deu certo.. sу que tem alguns cуdigos que nгo funfa direito tipo, quando seta alguйm pra ser lнder nгo aparece a menssagem.


Re: [AJUDA] Erro Orgs - whiXґ - 02.11.2011

Crazy nгo й necessario a exclusгo de sua strtok basta por isso no topo do seu gm/fs

pawn Код:
#pragma unused strtok
Segundo erro, tamanho da matriz nгo coincidem, ou matriz de destino й muito pequena.