尝试索引字段a的nil值

我玩Garry的模式,我也在我的服务器上运行一个插件.但是这个插件不起作用。这是错误:

\ [tperson ] addons / tperson / lua / 3tcore / client / cl \ _functions.lua:23:尝试索引字段'allow'(一个nil值)

1. IsActive- addons / tperson / lua / 3tcore / client / cl \ _functions.lua:23

代码如下:

 如果pPlayer没有TPerson的权限(“3rd”,“allow”)和TPerson.HasPermission(pPlayer,“1st”,“allow”)则返回false
    如果pPlayer:InVehicle()则返回false
    如果没有playerConfig [“allow”] [“third”]则返回false
 如果没有playerConfig [“allow”] [“tNearEntity”]和TPerson.IsNearOfEntity()则返回false
    如果TPerson.IsHoldingWeapon()则返回false
    如果TPerson.IsScopping()而不是playerConfig [“allow”] [“tOnAiming”]则返回false

    return TActive
end

请帮助

原文链接 https://stackoverflow.com/questions/69764476

点赞