SA-MP Forums Archive
Array is too small - 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: Array is too small (/showthread.php?tid=293590)



Array is too small - Face9000 - 29.10.2011

Hello guys,i've this errors while compiling:

error 047: array sizes do not match, or destination array is too small

The error line is this:

Код:
   	cmd = strtok(cmdtext, idx);
What's wrong??


Re: Array is too small - TomTroX - 29.10.2011

replace your new cmd to

pawn Код:
new cmd[256];



Re: Array is too small - Face9000 - 29.10.2011

256 cells? Isn't too much?


Re: Array is too small - TomTroX - 29.10.2011

Yes, too much.
But...

You can use Zeex CMD. (ZCMD).
Optimal and fast.

http://forum.sa-mp.com/showthread.ph...ight=zeex+zcmd