Few Questions
#5

You need to include the a_samp.inc file because it has all of SA:MP's main PAWN functions. Without it you couldn't write a mode to work with a SA:MP server.

A function is basically a line of code that does something directly. Basically, a function is a "shortcut" to a callback. The callback has all of the code to operate the function inside of it.

In SA:MP, the code is not called directly one thing after another. SA:MP calls things as they're needed- as long as the code is there, it will execute it.

When you see "public" before things, it's basically saying "Hey, I'm a callback." There is also "forward", that will pretty much make the "callback" recognizable by the server.

OnGameModeInit() is called when the GAME MODE is booted up for the first time. You can put functions/operations inside that callback to perform tasks when the GAME MODE boots up.

--

It's early, so these explanations may be somewhat incorrect. If you can get a response from ******, your answers will be given to the fullest extent.
Reply


Messages In This Thread
Few Questions - by KyleJulez - 07.12.2012, 18:03
Re: Few Questions - by [ABK]Antonio - 07.12.2012, 18:07
Re: Few Questions - by InfiniTy. - 07.12.2012, 18:09
Re: Few Questions - by Devilxz97 - 07.12.2012, 18:10
Re: Few Questions - by Scenario - 07.12.2012, 18:15
Re: Few Questions - by KyleJulez - 07.12.2012, 18:32
Re: Few Questions - by XStormiest - 07.12.2012, 18:48
Re: Few Questions - by KyleJulez - 07.12.2012, 19:39

Forum Jump:


Users browsing this thread: 1 Guest(s)