Hai allz , i tried to make smth , but it seems i cannot get something
Here are the functions i used :
function exit(thePlayer,matchingDimension)
setElementData(thePlayer,"LocationTurf",none)
-- I added a outputDebugString to see what it does return , it always returns another table
addEventHandler("onColShapeLeave",turfC1,exit)
...
function enter(thePlayer,matchingDimension,owner)
setElementData(thePlayer,"LocationTurf",turf1)
addEventHandler ( "onColShapeHit", turfC1,enter)
...
function lol(playerSource)
local turfToAttack = getElementData(playerSource,"LocationTurf")
-- Here its a debugstring . It outputs here
if ( turfToAttack == turf1 ) then -- Here is the problem , it seems i can't pass it
-- Here its another debugstring , it doesn't outputs here ..
addCommandHandler("lol",lol)
So , it's any way to see if a element data saved on a string , its equal with a string ?
Thank you
So , it doesn't pass there