SA-MP Forums Archive
Whats this mean. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Whats this mean. (/showthread.php?tid=111812)



Whats this mean. - xLowrider - 04.12.2009

Код:
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.



Re: Whats this mean. - Jakku - 04.12.2009

Post me the line 494.


Re: Whats this mean. - Malice - 04.12.2009

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


Re: Whats this mean. - xLowrider - 04.12.2009

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;
}



Re: Whats this mean. - xLowrider - 04.12.2009

Anyone?


Re: Whats this mean. - Malice - 04.12.2009

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