Invertory Script

I am Following a video on youtube. For making a inventory system. I followed every step when it comes to the script. i have an error with line 40 and 38. word rows have no clue why its doing this, in his video it worked fine.

Posting actual formatted code would help.

copy and paste your code and put it in code tags…no screenshots (left of the disk icon, insert>code)

also, according to your code, instead of rows you defined it as Row. So either change every reference from rows to Row or change the line:
private int Row;
to:
private int rows;

i see error for line 38 didnt put space in between (slots/rows)

that shouldn’t be causing the error

thanks that fixed it… your awesome.