[AJUDA] Erro Orgs
#1

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
Reply


Messages In This Thread
[AJUDA] Erro Orgs - by .CrazZy._.[De] - 02.11.2011, 20:22
Re: [AJUDA] Erro Orgs - by Dolby - 02.11.2011, 20:24
Re: [AJUDA] Erro Orgs - by .CrazZy._.[De] - 02.11.2011, 20:26
Re: [AJUDA] Erro Orgs - by whiXґ - 02.11.2011, 20:31

Forum Jump:


Users browsing this thread: 3 Guest(s)