But i have problem with lua command tile.
strangely, it works when i reset the script by using "dofile"
however when i restart the round, it doesn't work anymore unless reset the script again.
Whenever I trying to get original tile frame, it prints
1
LUA ERROR: sys/lua/Testscript.lua:1345: attempt to call global 'tile' (a number value)
ye , i'm using reqcld to get mouse position.
and I tried to convert it into tonumber and tostring, but it was no use.
This is where error appeared.
1
2
3
4
2
3
4
elseif ( pl[id].MAP.ERASE == true ) then local original = tile(pl[id].X,pl[id].Y,"originalframe") -- line 1345 parse("settile "..pl[id].X.." "..pl[id].Y.." "..original) end
solved : I used x,y as variable in map script so it caused bug.
edited 1×, last 19.05.15 06:10:06 pm