Jump to content
  • 0

Cum le pot rezolva?


Джо

Question

Salut de ceva timp am probleme cu serverul si anume nu mai vrea sa se compileze....Nu stiu ce e de facut.Nu mam mai intalnit cu asemenea erori...

[pawn]D:\Server Role-Play\a2viata.pwn(15947) : error 017: undefined symbol "strtok"

D:\Server Role-Play\a2viata.pwn(15947) : error 033: array must be indexed (variable "cmd")

D:\Server Role-Play\a2viata.pwn(16047) : warning 219: local variable "string" shadows a variable at a preceding level

D:\Server Role-Play\a2viata.pwn(16066) : error 017: undefined symbol "strtok"

D:\Server Role-Play\a2viata.pwn(16066) : error 033: array must be indexed (variable "x_nr")

D:\Server Role-Play\a2viata.pwn(16131) : error 017: undefined symbol "strtok"

D:\Server Role-Play\a2viata.pwn(16131) : error 033: array must be indexed (variable "tmp")

D:\Server Role-Play\a2viata.pwn(16183) : error 017: undefined symbol "strtok"

D:\Server Role-Play\a2viata.pwn(16183) : error 033: array must be indexed (variable "tmp")

D:\Server Role-Play\a2viata.pwn(16225) : error 017: undefined symbol "strtok"

D:\Server Role-Play\a2viata.pwn(16225) : error 033: array must be indexed (variable "tmp")

D:\Server Role-Play\a2viata.pwn(16350) : error 017: undefined symbol "strtok"

D:\Server Role-Play\a2viata.pwn(16350) : error 033: array must be indexed (variable "tmp")

D:\Server Role-Play\a2viata.pwn(16369) : error 017: undefined symbol "strtok"

D:\Server Role-Play\a2viata.pwn(16369) : error 033: array must be indexed (variable "tmp")

D:\Server Role-Play\a2viata.pwn(16393) : error 017: undefined symbol "strtok"

D:\Server Role-Play\a2viata.pwn(16393) : error 033: array must be indexed (variable "tmp")

D:\Server Role-Play\a2viata.pwn(16401) : error 017: undefined symbol "strtok"

D:\Server Role-Play\a2viata.pwn(16401) : error 033: array must be indexed (variable "tmp")

D:\Server Role-Play\a2viata.pwn(16463) : error 017: undefined symbol "strtok"

D:\Server Role-Play\a2viata.pwn(16463) : error 033: array must be indexed (variable "tmp")

D:\Server Role-Play\a2viata.pwn(16660) : error 017: undefined symbol "strtok"

D:\Server Role-Play\a2viata.pwn(16660) : error 033: array must be indexed (variable "tmp")

D:\Server Role-Play\a2viata.pwn(16676) : error 017: undefined symbol "strtok"

D:\Server Role-Play\a2viata.pwn(16676) : error 033: array must be indexed (variable "x_nr")

D:\Server Role-Play\a2viata.pwn(16725) : error 017: undefined symbol "strtok"

D:\Server Role-Play\a2viata.pwn(16725) : error 033: array must be indexed (variable "tmp")

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

26 Errors.[/pawn]

 

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Adauga

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

la sfarsitul gamemode-ului.

Iar pentru tmp si x_nr vezi mareste stringul

new tmp[256] sau new x_nr[256] cam asa ar trebui sa arate

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

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.