Need basic info
#2

https://sampwiki.blast.hk/wiki/Keywords:Initialisers
  1. Only use public functions for things that need to be "visible" to the server process. This is only the case for callbacks (see below), functions called by a timer and functions called by either CallLocalFunction or CallRemoteFunction.
  2. Pawn does not have a "private" keyword because it is not an object-oriented language. Variables are visible in the scope they're defined in. The "static" keyword comes closes to "private" because variables declared as static are only visible in the section (file) they're defined in.
  3. A callback is a function that is called by the server or a plugin. You (usually) don't call it directly from within the script (e.g. OnPlayerConnect). Names of callbacks will usually start with "On".
  4. A string is a sequence of (human readable) characters, i.e. text.
Reply


Messages In This Thread
Need basic info - by Advait - 28.05.2017, 13:43
Re: Need basic info - by Vince - 28.05.2017, 13:51
Re: Need basic info - by DarkBr - 28.05.2017, 16:30

Forum Jump:


Users browsing this thread: 1 Guest(s)