Jump to content

Help me. Thank you!


FORDIR_Max

Recommended Posts

Hello everyone! Faced whith problem in the script. The script:

function jailPort()
    setTimer(function(source)
    setElementDimension(source, 0)
	setElementInterior(source, 0)
    setElementPosition(source, -676, 2609, -20.5)
	setElementHealth(source, 800)
	end,
	7000,1)
end

function tpPlayerZ(source)
local nameOut = getPlayerName(source)
local listGet = aclGetGroup("Zeck")
local grouplist = aclGroupListObjects(listGet)
if isObjectInACLGroup("user."..nameOut,listGet) then
    jailPort()
end
end
addEventHandler("onPlayerWasted",root,tpPlayerZ)

The error:

[22-02-27 08:11:51] WARNING: [gameplay]/medAdnVoen/server.lua:95: Bad argument @ 'getPlayerName' [Expected element at argument 1, got number '0']
[22-02-27 08:11:51] ERROR: [gameplay]/medAdnVoen/server.lua:98: attempt to concatenate local 'nameOut' (a boolean value)

 

 

I found the error, but i don not know to the fix.

PS. Sorry to the my english. I from Russia. Rus moderator offline 2 days old. I m writing you. I think, will you help me. Thanks!

Edited by FORDIR_Max
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...