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:53 PM,
#3
LocInt Offline
Long gone
****
Posts: 489
Threads: 91
Joined: Aug 2014
RE: xpcall failed
(14-02-2015, 04:48 PM)Person8880 Wrote: 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?

Should my line crash the whole chip?

тѕсм.Person8880 hovers the nerf bat over Tetryon damage
Website 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.