SA-MP Forums Archive
Strtok problem. - 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: Strtok problem. (/showthread.php?tid=258829)



Strtok problem. - Captain Price - 01.06.2011

Those are the lines
pawn Код:
/// Under "public OnPlayerCommandText(playerid, cmdtext[])"
[Line 285]new cmd[128], idx;
[Line 286]cmd = strtok(cmdtext, idx);
/// Under Command
[Line 472]new tmp[128];
[Line 473]tmp = strtok(cmdtext, idx);
[Line 474]new ymp[128];
[Line 475]ymp = strtok(cmdtext, idx);
// And if i will add the Strtok setting under the script its says that i allready defined strtok
And the Errors are:
Код:
C:\Users\Yuvalino\Desktop\Server\gamemodes\UltraDM.pwn(286) : error 047: array sizes do not match, or destination array is too small
C:\Users\Yuvalino\Desktop\Server\gamemodes\UltraDM.pwn(473) : error 047: array sizes do not match, or destination array is too small
C:\Users\Yuvalino\Desktop\Server\gamemodes\UltraDM.pwn(475) : error 047: array sizes do not match, or destination array is too small
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
help.