[Ajuda] Erros
#4

Olб, bom dia, mesmo com a strtok ainda continua com os seguintes errors:

Код:
error 029: invalid expression, assumed zero
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
Jб coloquei o strtok dentro da callback, no final do gamemode, antes das callbacks, em baixo das includes em qualquer lugar, ele dб esses errors.

A linha й esta:
Код:
return[index - offset] = EOS;
O cуdigo da strtok que eu uso й este:

Код:
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++;
	}
	return[index - offset] = EOS;
	return result;
}
Jб, sem a strtok ele dб esses errors:

Код:
undefined symbol "strtok"
undefined symbol "strtok"
undefined symbol "strtok"
undefined symbol "strtok"
undefined symbol "strtok"
undefined symbol "strtok"
undefined symbol "strtok"
symbol is assigned a value that is never used: "index"
undefined symbol "strtok"
array must be indexed (variable "cmd")
undefined symbol "strtok"
array must be indexed (variable "tmp")
undefined symbol "strtok"
Nгo sгo sу estes aн, sу coloquei atй aн, durante as prуximas linhas ele fica repetindo-se os mesmos errors.
No total sгo 26 errors, se precisarem das linhas me falem.
Reply


Messages In This Thread
Erros - by BlackoutW - 14.09.2016, 02:14
Re: Erros - by ViDaLoKa1 - 14.09.2016, 02:31
Re: Erros - by Bruno13 - 14.09.2016, 08:57
Re: Erros - by BlackoutW - 14.09.2016, 14:21
Respuesta: Erros - by SammyJ - 14.09.2016, 16:25
Re: Erros - by BlackoutW - 14.09.2016, 17:33
Re: Erros - by RedMF - 14.09.2016, 17:44
Re: Erros - by F1N4L - 14.09.2016, 18:11

Forum Jump:


Users browsing this thread: 1 Guest(s)