Array sizes do not match - 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 not match (
/showthread.php?tid=265630)
Array sizes do not match -
StandaxXx - 01.07.2011
Hello
I have a problem. I switched from fini, because it seemed broken, to some new adaptation of it, but i get an error. Idk if its my fault or if there is a fault in that new file save system.
THX for any help
filesystem:
https://sampforum.blast.hk/showthread.php?tid=262795
btw. I forgot to say that with fini it worked as it is
Код:
for(new c=1; c<=cars; c++)
{
new carname[128];
new carn[128];
new name[128];
format(carn,sizeof(carn), "Car%i",c);
format(carname,sizeof(carname), "%sname",carn);
name = file_GetStr(carname); // array sizes do not match, or destination array is too small
}
Re: Array sizes do not match - [L3th4l] - 01.07.2011
That file system expects a "#define MAX_VAL_LENGTH (256)" string size, thus giving you that error.
Re: Array sizes do not match -
StandaxXx - 01.07.2011
Man you saved my life. Thank you very much, I thought I will have to port again.