Jump to content
  • 0

Erori Gang


ExTREME.

Question

Salut am luat un system de gang Cand il Compilez imi apar aceste erori

D:\Romania Stunt Universe Terminat\pawno\include\dcallbacks.inc(33) : warning 235: public function lacks forward declaration (symbol "AddAreaCheck")

D:\Romania Stunt Universe Terminat\pawno\include\dcallbacks.inc(42) : warning 235: public function lacks forward declaration (symbol "TIMER_DCallbacks")

C:\Documents and Settings\XPPRESP3\Desktop\Gang FS www.italianfighters.com\filterscripts\gang.pwn(361) : error 017: undefined symbol "strtok"

C:\Documents and Settings\XPPRESP3\Desktop\Gang FS www.italianfighters.com\filterscripts\gang.pwn(361) : error 033: array must be indexed (variable "tmp2")

C:\Documents and Settings\XPPRESP3\Desktop\Gang FS www.italianfighters.com\filterscripts\gang.pwn(361) : warning 203: symbol is never used: "Index"

C:\Documents and Settings\XPPRESP3\Desktop\Gang FS www.italianfighters.com\filterscripts\gang.pwn(674) : error 017: undefined symbol "strtok"

C:\Documents and Settings\XPPRESP3\Desktop\Gang FS www.italianfighters.com\filterscripts\gang.pwn(674) : error 033: array must be indexed (variable "tmp")

C:\Documents and Settings\XPPRESP3\Desktop\Gang FS www.italianfighters.com\filterscripts\gang.pwn(674) : warning 203: symbol is never used: "Index"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

4 Errors.

Linii:

361: new tmp[256], tmp2[256], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index);

374 new tmp[256] , Index; tmp = strtok(params,Index);

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Nu ai definit strtok:

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

http://wiki.sa-mp.com/wiki/Strtok

Fara reclama in semnatura!

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.