Jump to content

Question

Posted

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

2 answers to this question

Recommended Posts

Posted

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!

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.