[Tutorial] Callbacks and Functions : Important difference
#2

I understand this already however the way you explained it wasn't too good. For example:
Quote:

They're intended to call at any time when something specific happens.

You can also use functions when something specific happens. Also, the code you put as a example for OnMessageToAdminsSend is terribly coded, for several reasons:
  1. You're using CallLocalFunction when you can simply just call it normally.
  2. SendMessageToAdmins(message) is your code, you can only send integers to all admins.
  3. SendMessageToAdmins will print errors because you're tag mismatching.
You should of also explained why you use "stock" before you declare a function before people begin using it and not knowing what it exactly means. Tutorials are meant to be released if you know exactly what you're doing. Check this thread out!
Reply


Messages In This Thread
Callbacks and Functions : Important difference - by Kwarde - 22.07.2011, 23:16
Re: Callbacks and Functions : Important difference - by Cyanide - 22.07.2011, 23:34
Re: Callbacks and Functions : Important difference - by Kwarde - 22.07.2011, 23:42
Re: Callbacks and Functions : Important difference - by Cyanide - 22.07.2011, 23:47
Re: Callbacks and Functions : Important difference - by Zh3r0 - 22.07.2011, 23:49
Re: Callbacks and Functions : Important difference - by Kwarde - 23.07.2011, 08:35

Forum Jump:


Users browsing this thread: 1 Guest(s)