1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14
addhook("say","sl_getstore") function sl_getstore(id,t) for s=1,#itemshop do if btp(id,itemshop[s].x1-1,itemshop[s].y1-1,itemshop[s].x2+1,itemshop[s].y2+1,2) then if t=="!buy" then s='Item shop' for h=1,2 do					 -> Here error <-s=s..','..itemshop[s].item[h].name end menu(id,s) end end end end
error at line 10 attempt to index field '?' (a nil value)