SA-MP Forums Archive
I cant compile pls help. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: I cant compile pls help. (/showthread.php?tid=197216)



I cant compile pls help. - GBLTeam - 08.12.2010

Код:
C:\Documents and Settings\GBLTeam\Desktop\cc\lslrp.pwn(18240) : error 017: undefined symbol "strtok"
C:\Documents and Settings\GBLTeam\Desktop\cc\lslrp.pwn(18240) : error 033: array must be indexed (variable "cmd")
C:\Documents and Settings\GBLTeam\Desktop\cc\lslrp.pwn(18343) : error 017: undefined symbol "strtok"
C:\Documents and Settings\GBLTeam\Desktop\cc\lslrp.pwn(18343) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\GBLTeam\Desktop\cc\lslrp.pwn(18511) : error 017: undefined symbol "strtok"
C:\Documents and Settings\GBLTeam\Desktop\cc\lslrp.pwn(18511) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\GBLTeam\Desktop\cc\lslrp.pwn(18519) : error 017: undefined symbol "strtok"
C:\Documents and Settings\GBLTeam\Desktop\cc\lslrp.pwn(18519) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\GBLTeam\Desktop\cc\lslrp.pwn(18526) : error 017: undefined symbol "strtok"
C:\Documents and Settings\GBLTeam\Desktop\cc\lslrp.pwn(18526) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\GBLTeam\Desktop\cc\lslrp.pwn(18565) : error 017: undefined symbol "strtok"
C:\Documents and Settings\GBLTeam\Desktop\cc\lslrp.pwn(18565) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\GBLTeam\Desktop\cc\lslrp.pwn(18583) : error 017: undefined symbol "strtok"
C:\Documents and Settings\GBLTeam\Desktop\cc\lslrp.pwn(18583) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\GBLTeam\Desktop\cc\lslrp.pwn(18591) : error 017: undefined symbol "strtok"
C:\Documents and Settings\GBLTeam\Desktop\cc\lslrp.pwn(18591) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\GBLTeam\Desktop\cc\lslrp.pwn(18647) : error 017: undefined symbol "strtok"
C:\Documents and Settings\GBLTeam\Desktop\cc\lslrp.pwn(18647) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\GBLTeam\Desktop\cc\lslrp.pwn(18676) : error 017: undefined symbol "strtok"
C:\Documents and Settings\GBLTeam\Desktop\cc\lslrp.pwn(18676) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\GBLTeam\Desktop\cc\lslrp.pwn(18684) : error 017: undefined symbol "strtok"
C:\Documents and Settings\GBLTeam\Desktop\cc\lslrp.pwn(18684) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\GBLTeam\Desktop\cc\lslrp.pwn(18691) : error 017: undefined symbol "strtok"
C:\Documents and Settings\GBLTeam\Desktop\cc\lslrp.pwn(18691) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\GBLTeam\Desktop\cc\lslrp.pwn(18700) : error 017: undefined symbol "strtok"
C:\Documents and Settings\GBLTeam\Desktop\cc\lslrp.pwn(18700) : error 033: array must be indexed (variable "tmp")

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
Whats the problem?


Re: I cant compile pls help. - Baboon - 08.12.2010

I think you have to download MySQL and Scanff, I guess...


Re: I cant compile pls help. - Benjo - 08.12.2010

Just a hunch, it looks like you are missing the strtok method. Here it is:

Код:
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;
}
Put that badboy into your code and see what happens.