Jump to content
  • 0

[OMG] 26 Errors on Compile !


xblake

Question

Buna ziua tuturor. Am o problema, cand incerc sa compilez un GM imi da 26 de erori, dar nu gasesc motivul. Am toate include-urile necesare, nu am modificat nimic la el, dar tot nu merge. De curiozitate l-am intrebat pe cineva daca ii merge sa-l compileze si lui ia mers fara nici o eroare  :shocked: . Intrebarea este, eu de ce nu l-am putut compila si a putut ala din moment ce am compilat amandoi cu acelasi pawno si aceleasi include-uri ?

Mai jos aveti erorile:

C:\Documents and Settings\Ady\Desktop\ftrp\pawno\include\streamer.inc(435) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Ady\Desktop\ftrp\pawno\include\streamer.inc(449) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Ady\Desktop\ftrp\gamemodes\forteam.pwn(17301) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Ady\Desktop\ftrp\gamemodes\forteam.pwn(17301) : error 033: array must be indexed (variable "cmd")
C:\Documents and Settings\Ady\Desktop\ftrp\gamemodes\forteam.pwn(17500) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Ady\Desktop\ftrp\gamemodes\forteam.pwn(17500) : error 033: array must be indexed (variable "x_nr")
C:\Documents and Settings\Ady\Desktop\ftrp\gamemodes\forteam.pwn(17700) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Ady\Desktop\ftrp\gamemodes\forteam.pwn(17700) : error 033: array must be indexed (variable "x_nr")
C:\Documents and Settings\Ady\Desktop\ftrp\gamemodes\forteam.pwn(18087) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Ady\Desktop\ftrp\gamemodes\forteam.pwn(18087) : error 033: array must be indexed (variable "x_nr")
C:\Documents and Settings\Ady\Desktop\ftrp\gamemodes\forteam.pwn(18141) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Ady\Desktop\ftrp\gamemodes\forteam.pwn(18141) : error 033: array must be indexed (variable "x_nr")
C:\Documents and Settings\Ady\Desktop\ftrp\gamemodes\forteam.pwn(18195) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Ady\Desktop\ftrp\gamemodes\forteam.pwn(18195) : error 033: array must be indexed (variable "x_nr")
C:\Documents and Settings\Ady\Desktop\ftrp\gamemodes\forteam.pwn(18258) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Ady\Desktop\ftrp\gamemodes\forteam.pwn(18258) : error 033: array must be indexed (variable "x_nr")
C:\Documents and Settings\Ady\Desktop\ftrp\gamemodes\forteam.pwn(18317) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Ady\Desktop\ftrp\gamemodes\forteam.pwn(18317) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Ady\Desktop\ftrp\gamemodes\forteam.pwn(18325) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Ady\Desktop\ftrp\gamemodes\forteam.pwn(18325) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Ady\Desktop\ftrp\gamemodes\forteam.pwn(18400) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Ady\Desktop\ftrp\gamemodes\forteam.pwn(18400) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Ady\Desktop\ftrp\gamemodes\forteam.pwn(18642) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Ady\Desktop\ftrp\gamemodes\forteam.pwn(18642) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Ady\Desktop\ftrp\gamemodes\forteam.pwn(18675) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Ady\Desktop\ftrp\gamemodes\forteam.pwn(18675) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Ady\Desktop\ftrp\gamemodes\forteam.pwn(18708) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Ady\Desktop\ftrp\gamemodes\forteam.pwn(18708) : error 033: array must be indexed (variable "tmp")

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

Baga la sfarsit sau unde vrei in GM numai sa nu fie sub un CallBack :

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

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.