strtok Errors, Need help!
#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;
}
I have tried to fix it but I don't know what the hell I'm doing so I need you guy's help since I have never encountered this problem before.
Reply
#2

Me to i got the same problem heh ANY ONE HELP!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)