[HELP] array sizes do not match, or destination array is too small
#1

Код:
D:\San Francisco City RPG v3\gamemodes\skaTim.pwn(12692) : error 047: array sizes do not match, or destination array is too small
D:\San Francisco City RPG v3\gamemodes\skaTim.pwn(15648) : error 047: array sizes do not match, or destination array is too small
D:\San Francisco City RPG v3\gamemodes\skaTim.pwn(15815) : error 047: array sizes do not match, or destination array is too small
D:\San Francisco City RPG v3\gamemodes\skaTim.pwn(16175) : error 047: array sizes do not match, or destination array is too small
D:\San Francisco City RPG v3\gamemodes\skaTim.pwn(16974) : error 047: array sizes do not match, or destination array is too small
D:\San Francisco City RPG v3\gamemodes\skaTim.pwn(17507) : error 047: array sizes do not match, or destination array is too small
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


6 Errors.
A'right, i don't know what to do, any help please?
__________________________________________
Код:
LINE 12692: x_info = strtok(cmdtext, idx);
LINE 15648: x_info = strtok(cmdtext, idx);
LINE 15815: x_info = strtok(cmdtext, idx);
LINE 16175: x_info = strtok(cmdtext, idx);
LINE 16974: x_info = strtok(cmdtext, idx);
LINE 17507: tmp = strtok(params, idx);
same lines...what should i do?
Reply
#2

I suggest you should use dcmd instead of strtok. And I think that some of your 'new' variables e.g.
new string[128]; is too small or too big.
Reply
#3

Quote:
Originally Posted by KnooL
I suggest you should use dcmd instead of strtok. And I think that some of your 'new' variables e.g.
new string[128]; is too small or too big.
+1. sscanf in combination with dcmd is much better, really.
Reply
#4

Thats what i use and its MUCH better, and easier
Reply
#5

A'right, thanks for the reply, it work's now.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)