Array sizes do not match
#1

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
}
Reply
#2

That file system expects a "#define MAX_VAL_LENGTH (256)" string size, thus giving you that error.
Reply
#3

Man you saved my life. Thank you very much, I thought I will have to port again.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)