Erorr Compile !
#1

Hello !
I try to compile on gm and i have next warnings:
Код:
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 © 1997-2006, ITB CompuPhase


26 Errors.
9976
Код:
	cmd = strtok(cmdtext, idx);
9990
Код:
			tmp = strtok(cmdtext, idx);
10002
Код:
			tmp = strtok(cmdtext, idx);
And next warning is identic.

Help me please

PS:Sorry for my bad english= i am romanian.
Reply
#2

I think you need this somewhere

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

Tkz !

It's done !

Closed Topic !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)