Jump to content

Error in Loading script


WeCan

Recommended Posts

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 by WeCan
Link to comment
  • Moderators
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

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