Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Starfall v
« Previous 1 … 14 15 16 17 18 Next »
xpcall failed
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linear Mode
xpcall failed
14-02-2015, 04:48 PM,
#2
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: xpcall failed[BUG]
You're calling broadcastMessage, which returns presumably nothing, which means you then pass nil to xpcall.

xpcall then calls nil because that's what the function call returned.

This is what it should be:
local function ErrorHandler( Error )
print( "Oh noes! An error:", Error )
end
local Result = xpcall( broadcastMessage, ErrorHandler, Type, Message, ply )

Can you see why yours didn't work now?
Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
xpcall failed - by LocInt - 14-02-2015, 04:42 PM
RE: xpcall failed[BUG] - by Person8880 - 14-02-2015, 04:48 PM
RE: xpcall failed - by LocInt - 14-02-2015, 04:53 PM
RE: xpcall failed - by Person8880 - 14-02-2015, 04:53 PM
RE: xpcall failed - by LocInt - 14-02-2015, 04:56 PM
RE: xpcall failed - by Person8880 - 14-02-2015, 04:58 PM
RE: xpcall failed - by LocInt - 14-02-2015, 05:11 PM
RE: xpcall failed - by Person8880 - 14-02-2015, 05:15 PM
RE: xpcall failed - by LocInt - 14-02-2015, 05:18 PM

  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.