Hi Friends !
Again, I've fall into a big hole . So, I'm requesting you to help me to come outside this hole by answering this problem .
The problem is mentioned below,
We use 'setElementData' to store some data in a element like below,
local marker = createMarker(0,0,5,"cylinder",1.5,255,255,0,255)
addEventHandler("onMarkerHit", marker,
function (hitter)
setElementData(hitter,"isInsideMarker","yes")
end
)
addEventHandler("onMarkerLeave", marker,
function (leaver)
setElementData(leaver,"isInsideMarker","no")
end
)
as you can see, when element hit the marker, we set it's data called "isInsideMarker", the value "yes". when leave, element's data "isInsideMarker" set to the value "no". Simple idea ! So, in this occasion, "isInsideMarker" data gets only the value "yes" and "no". It successfully store only one value at one time. So, my problem is, how to store multiple values set in one element's data ? [ it may be using a table or ..ect ] can you describe me how to store multiple values in one element data ?