SA-MP Forums Archive
strtok error - 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 error (/showthread.php?tid=171995)



strtok error - Sascha - 28.08.2010

Hi guys..
What does cause this error / how to get it away?

Код:
new cmd[128];
	new tmp[128];
	new idx;
	new giveplayername[MAX_PLAYER_NAME];
	new sendername[MAX_PLAYER_NAME];
	new string[128];
	cmd = strtok(cmdtext,idx);
Error:
Код:
(4929) : error 047: array sizes do not match, or destination array is too small
in line
Код:
 
cmd = strtok(cmdtext, idx);



Re: strtok error - RyDeR` - 28.08.2010

Show us OnPlayerCommandText.


Re: strtok error - Sascha - 28.08.2010

nvm... fixed it... strtok was defined wrong hehe :P