Jump to content

Problems


GanJaRuleZ

Recommended Posts

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

Link to comment
t =  
{ 
    [1] = function( ) return 'GanJaRuleZ'   end; 
    [2] = function( ) return 'Learn'        end; 
    [3] = function( ) return 'Lua'          end; 
} 
  
for i = 1, #t do 
    print( t[ i ]( ) ) 
end 
--[[ 
 Output: 
 GanJaRuleZ 
 Learn 
 Lua 
]] 
  
  

?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...