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
#2

You forgot a ";" on the previous, not-empty, line above line 317.
Reply
#3

Uups , yea , fixed it . thanks .
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)