简体   繁体   中英

lua unexpected symbol near '.'

Hi I am trying to make a script for my five m server and when I run the script I get this

lua unexpected symbol near '.'

i get the error on line 2

local Shipments, PickupBlip, GatePoint
local Player.PlayerData.job.name = Courier
local JobStarted,Gate,work,haspackage,TrunkOpen = false,false,false,false,false
local custormersdone = 0
local Player.PlayerData.job.name = Courier

is invalid syntax. You cannot declare a table field local. Remove the local keyword from that line to fix that.

attempt to index a function value (global 'Player') stack traceback: @M7X-courier/client/clien.lua: 2: in main chunk

Player is a function value in your environment.

You cannot index a function value. Maybe you wanted to index something else or that function's return value. Find out why you think you can index Player and what you should index instead.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM