WeCan Posted October 2, 2018 Share Posted October 2, 2018 (edited) hi i have Error in Loading ticket script SCRIPT ERROR: ticket-system\s_ticket.lua:99: ')' expected near 'Santos' ERROR: Loading script failed: ticket-system\s_ticket.lua:99: ')' expected near 'Santos' s_ticket.lua:99 is line 1 if (getTeamName(team) == "Los Sa326 Enterprises(getTeamName(team) == "Los Santos Police Department") or (getTeamName(team) == "San Andreas State Police") then if not (theVehicle) or not (amount) or not (tonumber(theVehicle)) or not (tonumber(amount)) or not (...) then outputChatBox("SYNTAX: /" ..theCommand.. " [vehID] [amount] [reason]", thePlayer, 255, 194, 14) Edited October 2, 2018 by WeCan Link to comment
Moderators Patrick Posted October 2, 2018 Moderators Share Posted October 2, 2018 if (getTeamName(team) == "Los Sa326 Enterprises") or (getTeamName(team) == "Los Santos Police Department") or (getTeamName(team) == "San Andreas State Police") then Replace first line to this. 1 Link to comment
WeCan Posted October 2, 2018 Author Share Posted October 2, 2018 (edited) Thank You Bro @Patrick2562 now i see : ERROR: veh-system\s_veh_system.lua:283: cannot resume dead coroutine [string "?"] ERROR: veh-system\s_veh_system.lua:283: cannot resume dead coroutine [string "?"] [DUP x8] the code is function resume() for key, value in ipairs(threads) do coroutine.resume(value) end end Edited October 2, 2018 by WeCan Link to comment
Moderators Patrick Posted October 2, 2018 Moderators Share Posted October 2, 2018 2 hours ago, WeCan said: Thank You Bro @Patrick2562 now i see : ERROR: veh-system\s_veh_system.lua:283: cannot resume dead coroutine [string "?"] ERROR: veh-system\s_veh_system.lua:283: cannot resume dead coroutine [string "?"] [DUP x8] the code is function resume() for key, value in ipairs(threads) do coroutine.resume(value) end end Try this, maybe work. I don't know. function resume() for key, value in ipairs(threads) do if coroutine.status(value) ~= "dead" then coroutine.resume(value) end end end Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now