SA-MP Forums Archive
errors - 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)
+--- Thread: errors (/showthread.php?tid=315245)



errors - hillko - 02.02.2012

HTML Code:
D:\GTA\samp03csvr_R5_win32\gamemodes\LVDM-Four.pwn(3476) : error 021: symbol already defined: "strtok"
D:\GTA\samp03csvr_R5_win32\gamemodes\LVDM-Four.pwn(3491) : error 047: array sizes do not match, or destination array is too small
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
HTML Code:
3475 strtok(const string[], &index)
3476 {
3477	new length = strlen(string);
3478	while ((index < length) && (string[index] <= ' '))
3479	{
3480		index++;
3481	}
3482
3483	new offset = index;
3484	new result[20];
3485	while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
3486	{
3487		result[index - offset] = string[index];
3488		index++;
3789	}
3490	result[index - offset] = EOS;
3491	return result;
3492 }



Re: errors - Babul - 02.02.2012

search in all your #include-d files. iam sure that one .inc already contains the strtok.
or simply remove it from your gamemode, since its defined already, you dont need to paste it a second time in your script.


Re: errors - Konstantinos - 02.02.2012

Just delete strtok from lines 3475 to 3492


Re: errors - hillko - 02.02.2012

Please throw off this inkluda if it lacks?