Whats this mean.
#1

Код:
C:\Documents and Settings\Jack\Desktop\paintball\Counter Strike Source ™\gamemodes\cs.pwn(494) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Jack\Desktop\paintball\Counter Strike Source ™\gamemodes\cs.pwn(494) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Jack\Desktop\paintball\Counter Strike Source ™\gamemodes\cs.pwn(494) : error 017: undefined symbol "index"
C:\Documents and Settings\Jack\Desktop\paintball\Counter Strike Source ™\gamemodes\cs.pwn(494) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply
#2

Post me the line 494.
Reply
#3

Most likely a typo, but we still need to see that line.
Reply
#4

Strtok is giving me too many problems..... 494 is the first line there.

Код:
 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++;
	}
	result[index - offset] = EOS;
	return result;
}
Reply
#5

Anyone?
Reply
#6

Sorry, the only thing I can tell you is don't use strtok.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)