Jump to content

[FIXED] Attempt to concatenate a boolean value


Recommended Posts

Posted (edited)

unknown.png

local gate = createObject(980, 1001.5, -1096.9000244141, 25.60000038147, 0, 0, 110)
local marker = createMarker(1001.5, -1096.9000244141, 25.60000038147, "cylinder", 8, 0, 0, 0, 0)

function moveGate(thePlayer)
    if isObjectInACLGroup("user." .. nomeAcc, aclGetGroup("TDF")) then
        moveObject(gate, 3000, 1001.5, -1096.9000244141, 20)
    end
end
addEventHandler("onMarkerHit", marker, moveGate)

function move_back_gate()
    moveObject(gate, 3000, 1001.5, -1096.9000244141, 25.60000038147)
end
addEventHandler("onMarkerLeave", marker, move_back_gate)

I think its all ok with this code, but... ERROR.

I wrongly have deleted a wrong line on my code, thats all ok now guys, i think.

local nomeAcc = getAccountName (getPlayerAccount (source)) 
Edited by ZeusXBr
Link to post
  • ZeusXBr changed the title to [FIXED] Attempt to concatenate a boolean value

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...