error 047 - 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: error 047 (
/showthread.php?tid=397750)
error 047 -
Dusan01 - 06.12.2012
hy guys i have errors in some game mode this is error:
Код:
error 047: array sizes do not match, or destination array is too small
line:
Код:
temp = strtok(params, idx);
Re: error 047 -
Vince - 06.12.2012
Size of 'temp' must be equal or bigger than the size of the string returned by strtok. There are many versions circulating. I recommend using sscanf, though.
Re: error 047 -
Dusan01 - 06.12.2012
Quote:
Originally Posted by Vince
Size of 'temp' must be equal or bigger than the size of the string returned by strtok. There are many versions circulating. I recommend using sscanf, though.
|
I am using sscanf. So how can i fix that?
Re: error 047 -
xMCx - 06.12.2012
pawn Код:
temp[/*thesize*/] = strtok(params, idx);
Re: error 047 -
Dusan01 - 06.12.2012
Quote:
Originally Posted by xMCx
pawn Код:
temp[/*thesize*/] = strtok(params, idx);
|
hmmmm, what is recommended size?