SA-MP Forums Archive
array sizes do not 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)
+--- Thread: array sizes do not match, or destination array is too small (/showthread.php?tid=475201)



array sizes do not match, or destination array is too small - MrMou6 - 11.11.2013

FIXED.


Re: array sizes do not match, or destination array is too small - Loot - 11.11.2013

Is vInfo[carid][pavadinimas] a string or an int/float?


Re: array sizes do not match, or destination array is too small - Konstantinos - 11.11.2013

You basically want to copy a string to another, but that way would only work if the sizes do match.

Change to:
pawn Код:
strcat((vInfo[carid][pavadinimas][0] = '\0', vInfo[carid][pavadinimas]), vpavadinimas, 128);



Re: array sizes do not match, or destination array is too small - MrMou6 - 11.11.2013

thanks, i fix it.