Jump to content
  • 0

O problema la un GameMod


rBcollo

Question

Salutari,,,am intrat in Pawno pentru a modifica un GameMod si mi-a dat eroarea asta

C:\Users\Catalin\Desktop\NewSuperSErver\gamemodes\eRP.pwn(15212) : error 017: undefined symbol "strtok"
C:\Users\Catalin\Desktop\NewSuperSErver\gamemodes\eRP.pwn(15212) : error 033: array must be indexed (variable "cmd")
C:\Users\Catalin\Desktop\NewSuperSErver\gamemodes\eRP.pwn(15238) : error 017: undefined symbol "strtok"
C:\Users\Catalin\Desktop\NewSuperSErver\gamemodes\eRP.pwn(15238) : error 033: array must be indexed (variable "tmp")
C:\Users\Catalin\Desktop\NewSuperSErver\gamemodes\eRP.pwn(15251) : error 017: undefined symbol "strtok"
C:\Users\Catalin\Desktop\NewSuperSErver\gamemodes\eRP.pwn(15251) : error 033: array must be indexed (variable "tmp")
C:\Users\Catalin\Desktop\NewSuperSErver\gamemodes\eRP.pwn(15326) : error 017: undefined symbol "strtok"
C:\Users\Catalin\Desktop\NewSuperSErver\gamemodes\eRP.pwn(15326) : error 033: array must be indexed (variable "tmp")
C:\Users\Catalin\Desktop\NewSuperSErver\gamemodes\eRP.pwn(15381) : error 017: undefined symbol "strtok"
C:\Users\Catalin\Desktop\NewSuperSErver\gamemodes\eRP.pwn(15381) : error 033: array must be indexed (variable "tmp")
C:\Users\Catalin\Desktop\NewSuperSErver\gamemodes\eRP.pwn(15414) : error 017: undefined symbol "strtok"
C:\Users\Catalin\Desktop\NewSuperSErver\gamemodes\eRP.pwn(15414) : error 033: array must be indexed (variable "tmp")
C:\Users\Catalin\Desktop\NewSuperSErver\gamemodes\eRP.pwn(15519) : error 017: undefined symbol "strtok"
C:\Users\Catalin\Desktop\NewSuperSErver\gamemodes\eRP.pwn(15519) : error 033: array must be indexed (variable "tmp")
C:\Users\Catalin\Desktop\NewSuperSErver\gamemodes\eRP.pwn(15531) : error 017: undefined symbol "strtok"
C:\Users\Catalin\Desktop\NewSuperSErver\gamemodes\eRP.pwn(15531) : error 033: array must be indexed (variable "tmp")
C:\Users\Catalin\Desktop\NewSuperSErver\gamemodes\eRP.pwn(15582) : error 017: undefined symbol "strtok"
C:\Users\Catalin\Desktop\NewSuperSErver\gamemodes\eRP.pwn(15582) : error 033: array must be indexed (variable "tmp")
C:\Users\Catalin\Desktop\NewSuperSErver\gamemodes\eRP.pwn(15835) : error 017: undefined symbol "strtok"
C:\Users\Catalin\Desktop\NewSuperSErver\gamemodes\eRP.pwn(15835) : error 033: array must be indexed (variable "tmp")
C:\Users\Catalin\Desktop\NewSuperSErver\gamemodes\eRP.pwn(15861) : error 017: undefined symbol "strtok"
C:\Users\Catalin\Desktop\NewSuperSErver\gamemodes\eRP.pwn(15861) : error 033: array must be indexed (variable "tmp")
C:\Users\Catalin\Desktop\NewSuperSErver\gamemodes\eRP.pwn(16010) : error 017: undefined symbol "strtok"
C:\Users\Catalin\Desktop\NewSuperSErver\gamemodes\eRP.pwn(16010) : error 033: array must be indexed (variable "tmp")
C:\Users\Catalin\Desktop\NewSuperSErver\gamemodes\eRP.pwn(16155) : error 017: undefined symbol "strtok"
C:\Users\Catalin\Desktop\NewSuperSErver\gamemodes\eRP.pwn(16155) : error 033: array must be indexed (variable "tmp")

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


26 Errors.
Chiar nu stiu ce sa fac...toate liniile la care da eroare sunt asa
	cmd = strtok(cmdtext, idx);
sau asa
	cmd = strtok(cmdtext, idx);

Ma puteti ajuta?

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Sus in script, sub toate #include pune

#undef strtok
Si undeva in script pune
strtok(const stringstrtok[], &index)
{
	new length = strlen(stringstrtok);
	while ((index < length) && (stringstrtok[index] <= ' ')) { index++; }

	new offset = index, result[20];
	while ((index < length) && (stringstrtok[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
	{
		result[index - offset] = stringstrtok[index];
		index++;
	}
	result[index - offset] = EOS;
	return result;
}

Link to comment
Share on other sites

imi mai da eroarea asta

C:\Users\Catalin\Desktop\NewSuperSErver\gamemodes\eRP.pwn(15) : error 017: undefined symbol "strtok"
C:\Users\Catalin\Desktop\NewSuperSErver\gamemodes\eRP.pwn(15) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
iar linia 15 este
#undef strtok

Link to comment
Share on other sites

imi mai da eroarea asta

C:\Users\Catalin\Desktop\NewSuperSErver\gamemodes\eRP.pwn(15) : error 017: undefined symbol "strtok"
C:\Users\Catalin\Desktop\NewSuperSErver\gamemodes\eRP.pwn(15) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
iar linia 15 este
#undef strtok
Sterge acea linie, lina
#undef strtok

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.