SA-MP Forums Archive
I really don't understand this 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)
+--- Thread: I really don't understand this problem. (/showthread.php?tid=605368)



I really don't understand this problem. - iCurse - 18.04.2016

PHP код:
C:\Users\PC\Desktop\PP-RP\gamemodes\larp.pwn(26636) : error 047: array sizes do not match, or destination array is too small
C
:\Users\PC\Desktop\PP-RP\gamemodes\larp.pwn(26696) : error 047: array sizes do not match, or destination array is too small
C
:\Users\PC\Desktop\PP-RP\gamemodes\larp.pwn(26749) : error 047: array sizes do not match, or destination array is too small
C
:\Users\PC\Desktop\PP-RP\gamemodes\larp.pwn(27417) : error 047: array sizes do not match, or destination array is too small
C
:\Users\PC\Desktop\PP-RP\gamemodes\larp.pwn(27476) : error 047: array sizes do not match, or destination array is too small
C
:\Users\PC\Desktop\PP-RP\gamemodes\larp.pwn(28157) : error 047: array sizes do not match, or destination array is too small
C
:\Users\PC\Desktop\PP-RP\gamemodes\larp.pwn(28185) : error 047: array sizes do not match, or destination array is too small
C
:\Users\PC\Desktop\PP-RP\gamemodes\larp.pwn(28196) : error 047: array sizes do not match, or destination array is too small
C
:\Users\PC\Desktop\PP-RP\gamemodes\larp.pwn(28256) : error 047: array sizes do not match, or destination array is too small
C
:\Users\PC\Desktop\PP-RP\gamemodes\larp.pwn(28525) : error 047: array sizes do not match, or destination array is too small
C
:\Users\PC\Desktop\PP-RP\gamemodes\larp.pwn(28552) : error 047: array sizes do not match, or destination array is too small
C
:\Users\PC\Desktop\PP-RP\gamemodes\larp.pwn(28582) : error 047: array sizes do not match, or destination array is too small
C
:\Users\PC\Desktop\PP-RP\gamemodes\larp.pwn(28590) : error 047: array sizes do not match, or destination array is too small
C
:\Users\PC\Desktop\PP-RP\gamemodes\larp.pwn(28624) : error 047: array sizes do not match, or destination array is too small
C
:\Users\PC\Desktop\PP-RP\gamemodes\larp.pwn(28632) : error 047: array sizes do not match, or destination array is too small
C
:\Users\PC\Desktop\PP-RP\gamemodes\larp.pwn(28665) : error 047: array sizes do not match, or destination array is too small
C
:\Users\PC\Desktop\PP-RP\gamemodes\larp.pwn(28710) : error 047: array sizes do not match, or destination array is too small
C
:\Users\PC\Desktop\PP-RP\gamemodes\larp.pwn(28773) : error 047: array sizes do not match, or destination array is too small
C
:\Users\PC\Desktop\PP-RP\gamemodes\larp.pwn(28831) : error 047: array sizes do not match, or destination array is too small
C
:\Users\PC\Desktop\PP-RP\gamemodes\larp.pwn(28839) : error 047: array sizes do not match, or destination array is too small
C
:\Users\PC\Desktop\PP-RP\gamemodes\larp.pwn(28874) : error 047: array sizes do not match, or destination array is too small
C
:\Users\PC\Desktop\PP-RP\gamemodes\larp.pwn(28882) : error 047: array sizes do not match, or destination array is too small
C
:\Users\PC\Desktop\PP-RP\gamemodes\larp.pwn(29109) : error 047: array sizes do not match, or destination array is too small
C
:\Users\PC\Desktop\PP-RP\gamemodes\larp.pwn(29163) : error 047: array sizes do not match, or destination array is too small
C
:\Users\PC\Desktop\PP-RP\gamemodes\larp.pwn(29216) : error 047: array sizes do not match, or destination array is too small
C
:\Users\PC\Desktop\PP-RP\gamemodes\larp.pwn(29528) : error 047: array sizes do not match, or destination array is too small
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
26 Errors




Re: I really don't understand this problem. - Vince - 18.04.2016

Neither do we without code.


Re: I really don't understand this problem. - iCurse - 18.04.2016

Quote:
Originally Posted by Vince
Посмотреть сообщение
Neither do we without code.
What do you mean?


Re: I really don't understand this problem. - itsCody - 18.04.2016

Post the lines in the errors..


Re: I really don't understand this problem. - iCurse - 18.04.2016

All of the lines are all about "strtok". I'm using Raven's Roleplay.


Re: I really don't understand this problem. - itsCody - 18.04.2016

Still no help to us.


Re: I really don't understand this problem. - liquor - 18.04.2016

You need to show the code. The error basicly says you're trying to place a string in an array too small.


Re: I really don't understand this problem. - NaS - 18.04.2016

find every line with "strtok", and see what the array size of (probably) "cmd" is.
Then find the strtok function and see what size the array in there has and set them to the same (128 most commonly).