[ajuda]erros
#1

Tenho um problema que nгo conciso resolver
Код:
C:\Program Files\Rockstar Games\GTA San Andreas\server\Server\filterscripts\OOG_CHAT.pwn(218) : error 021: symbol already defined: "strtok"
C:\Program Files\Rockstar Games\GTA San Andreas\server\Server\filterscripts\OOG_CHAT.pwn(233) : 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.
e aqui estб o filterscrite:
http://pawn.pastebin.com/8Y75FGW2
e se alguem souber incluir os niveis do Ladmin para os chats, ficarei agradecido
Reply
#2

Cara, aki num deu nenhum problema, nenhum desses erros!
Mas acredito q o strtok esteja dando erro no seu FS/GM pq voce jah havia definido o strtok antes, ou seja voce tem 2 definiзoes para strtok no seu FS/GM.
Acho q eh isso.
O segundo erro eu naum sei te explicar pois ainda sou novato em pwn.
Espero ter ajudado
Reply
#3

no fim tu tens

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;
}
simplesmente apaga
Reply
#4

Obrigado, mas agora tenho de meter com que sу admins de nivel 1 consigam fazer alguns desses chat's como faзo isso?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)