[Ajuda] Erro Ao Compilar
#1

Problemas na hora de compilar com uma filterscript.
trata-se de um sistema de adm. primeiramente queria arruma-lo para
integrar a gm.

Код:
C:\Users\Lucas & yasmin\Downloads\Jadmin.pwn(240) : error 047: array sizes do not match, or destination array is too small
C:\Users\Lucas & yasmin\Downloads\Jadmin.pwn(2262) : error 021: symbol already defined: "strtok"
C:\Users\Lucas & yasmin\Downloads\Jadmin.pwn(2275) : error 047: array sizes do not match, or destination array is too small
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
linha 240

Код:
 cmd = strtok(cmdtext, idx);
Demais...

Код:
strtok(const string[], &index)
{
    new length = strlen(string);
    while ((index < length) && (string[index] <= ' '))
	{
		index++;
	}
    new offset = index,result[20];
    while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
	{
	    result[index - offset] = string[index];
	    index++;
	}
    result[index - offset] = EOS;
    return result;
}
se alguem puder dar alguma luz ai seria muito ъtil
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)