Big Problem
#1

Код:
C:\----------(317) : error 001: expected token: ";", but found "stock"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Line 317:
Код:
stock strtok(const string[], &index,seperator=' ')
Allcode:
Код:
stock strtok(const string[], &index,seperator=' ')
{
	new length = strlen(string);
	new offset = index;
	new result[128];
	while ((index < length) && (string[index] != seperator) && ((index - offset) < (sizeof(result) - 1)))
	{
		result[index - offset] = string[index];
		index++;
	}

	result[index - offset] = EOS;
	if ((index < length) && (string[index] == seperator))
	{
		index++;
	}
	return result;
}
Reply


Messages In This Thread
Big Problem - by Tekto - 25.07.2010, 18:50
Re: Big Problem - by Vince - 25.07.2010, 19:02
Re: Big Problem - by Tekto - 25.07.2010, 19:02

Forum Jump:


Users browsing this thread: 1 Guest(s)