SA-MP Forums Archive
array sizes do -match, OR destination 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: array sizes do -match, OR destination array is too small (/showthread.php?tid=248024)



array sizes do -match, OR destination array is too small - Typhome - 11.04.2011

Error is array sizes do -match, OR destination array is too small.

(Sloution at !Easy! post)


Re: array sizes do -match, OR destination array is too small - Fj0rtizFredde - 11.04.2011

Is cLicense defined as a string with 32 or more cells in your CData enum?


Re: array sizes do -match, OR destination array is too small - Miguel - 11.04.2011

pawn Код:
new ARKLicense[][4] = { // [] = number of items, [4] = size of the each item (3 characters + NULL character).
"ADC",// 1
"ODL",// 2
"YFK",// 3
"LEE", // 4
"UDK", // 5
"OLA", // 6
"POR", // 7
"HER", // 8
"IKS", // 9
"EHA", // 10
"OLG", // 11
"ORK", // 12
"TRA", // 13
"TYA", // 14
"OFA"  // 15
};



Re: array sizes do -match, OR destination array is too small - Typhome - 11.04.2011

Miguel, still error. :/


Re: array sizes do -match, OR destination array is too small - !Easy! - 11.04.2011

strmid(CData[autobahnist][cLicense], litsents, 0, strlen(litsents), 255);

Should work.


Re: array sizes do -match, OR destination array is too small - Typhome - 11.04.2011

!Easy!, very thanks, man.