3 little annoying errors...
#1

Код:
C:\Users\owner\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(26365) : error 010: invalid function or declaration
Код:
C:\Users\owner\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(26370) : error 022: must be lvalue (non-constant)
Код:
C:\Users\owner\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(26378) : error 022: must be lvalue (non-constant)
here is the code that is giving off those errors...

Код:
strtok(const string[], &index) // Line 26365
{
	new length = strlen(string);
	while ((index < length) && (string[index] <= ' '))
	{
		index++; // Line 26370
	}

	new offset = index;
	new result[20];
	while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
	{
		result[index - offset] = string[index];
		index++; // Line 26378
	}
	result[index - offset] = EOS;
	return result;
}
any ideas?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)