Forum

> > CS2D > Scripts > Lua Question - freeimage only works once
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Lua Question - freeimage only works once

Keine Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Lua Question - freeimage only works once

EngiN33R
Moderator Off Offline

Zitieren
So I'm making the Minecraft Beta mod, right now I'm making the built-block-breaking part, and I stumbled upon this god damn problem which I can't solve for a week already. I use some functions to find blocks/images/objects on a certain tile, and image variables for each block (as a table), and with all these functions, freeimage on objectkill only removes the image once, if I build another block, and its image (obviously) takes the ID of the previously built one, somehow it breaks and the image isn't being removed. The code of the objectkill hook itself and all the functions connected to it, and the block building function (not in the right order):
Spoiler >


Remember, the only part that doesn't work is the freeimage part, everything else works, like, please, don't mess with it :C
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht