Jump to content
  • 0

Eroare Compilare [Ajutor va rog] 2.


Question

Posted

Imi da aceste warninguri la compilare...:

D:\Razvan\SAMP\Servere\By Me\gamemodes\server.pwn(9976) : error 017: undefined symbol "strtok"
D:\Razvan\SAMP\Servere\By Me\gamemodes\server.pwn(9976) : error 033: array must be indexed (variable "cmd")
D:\Razvan\SAMP\Servere\By Me\gamemodes\server.pwn(9990) : error 017: undefined symbol "strtok"
D:\Razvan\SAMP\Servere\By Me\gamemodes\server.pwn(9990) : error 033: array must be indexed (variable "tmp")
D:\Razvan\SAMP\Servere\By Me\gamemodes\server.pwn(10002) : error 017: undefined symbol "strtok"
D:\Razvan\SAMP\Servere\By Me\gamemodes\server.pwn(10002) : error 033: array must be indexed (variable "tmp")
D:\Razvan\SAMP\Servere\By Me\gamemodes\server.pwn(10079) : error 017: undefined symbol "strtok"
D:\Razvan\SAMP\Servere\By Me\gamemodes\server.pwn(10079) : error 033: array must be indexed (variable "tmp")
D:\Razvan\SAMP\Servere\By Me\gamemodes\server.pwn(10280) : error 017: undefined symbol "strtok"
D:\Razvan\SAMP\Servere\By Me\gamemodes\server.pwn(10280) : error 033: array must be indexed (variable "tmp")
D:\Razvan\SAMP\Servere\By Me\gamemodes\server.pwn(10350) : error 017: undefined symbol "strtok"
D:\Razvan\SAMP\Servere\By Me\gamemodes\server.pwn(10350) : error 033: array must be indexed (variable "tmp")
D:\Razvan\SAMP\Servere\By Me\gamemodes\server.pwn(10386) : error 017: undefined symbol "strtok"
D:\Razvan\SAMP\Servere\By Me\gamemodes\server.pwn(10386) : error 033: array must be indexed (variable "tmp")
D:\Razvan\SAMP\Servere\By Me\gamemodes\server.pwn(10551) : error 017: undefined symbol "strtok"
D:\Razvan\SAMP\Servere\By Me\gamemodes\server.pwn(10551) : error 033: array must be indexed (variable "tmp")
D:\Razvan\SAMP\Servere\By Me\gamemodes\server.pwn(10577) : error 017: undefined symbol "strtok"
D:\Razvan\SAMP\Servere\By Me\gamemodes\server.pwn(10577) : error 033: array must be indexed (variable "tmp")
D:\Razvan\SAMP\Servere\By Me\gamemodes\server.pwn(10729) : error 017: undefined symbol "strtok"
D:\Razvan\SAMP\Servere\By Me\gamemodes\server.pwn(10729) : error 033: array must be indexed (variable "tmp")
D:\Razvan\SAMP\Servere\By Me\gamemodes\server.pwn(10934) : error 017: undefined symbol "strtok"
D:\Razvan\SAMP\Servere\By Me\gamemodes\server.pwn(10934) : error 033: array must be indexed (variable "tmp")
D:\Razvan\SAMP\Servere\By Me\gamemodes\server.pwn(10989) : error 017: undefined symbol "strtok"
D:\Razvan\SAMP\Servere\By Me\gamemodes\server.pwn(10989) : error 033: array must be indexed (variable "tmp")
D:\Razvan\SAMP\Servere\By Me\gamemodes\server.pwn(11143) : error 017: undefined symbol "strtok"
D:\Razvan\SAMP\Servere\By Me\gamemodes\server.pwn(11143) : error 033: array must be indexed (variable "tmp")

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


26 Errors.
9976
	cmd = strtok(cmdtext, idx);
9990
			tmp = strtok(cmdtext, idx);
10002
			tmp = strtok(cmdtext, idx);

SI celelalte sunt la fel...

Help me please :(

3 answers to this question

Recommended Posts

Posted

nu avea asta in GM sau in FS:

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

Fara reclama in semnatura!

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.