What's coming first in script?
#1

What's coming first in script?

Can you set numbers for what come first and where to put each please

CallBacks?[Where to put and his number?]
Commands?[Where to put and his number?]
Functions?[Where to put and his number?]
Enums?[Where to put and his number?]
Varaibles?[Where to put and his number?]
OnPlayerLoad?[Where to put and his number?]
Defines?[Where to put and his number?]
MySQL settings?[Where to put and his number?]
OnDialogResponse?[Where to put and his number?]
Streamer?[Where to put and his number?]
TextDraws?[Where to put and his number?]
Timers?[Where to put and his number?]
Reply
#2

It doesn't really matter how you put them, but thats the way that i am doing it.

1. Defines
2. Enums
3. Variables
4. Timers
5. TextDraws
6. Streamer
7. Functions
8. CallBacks
9. OnDialogResponse
10. MySQL settings
11. OnPlayerLoad
12. Commands
Reply
#3

1st = include or a define.
Reply
#4

For most of my gamemodes, I tend to use this format:
  • Includes
  • Defines and macros
  • Enumerators
  • Variables
  • Large arrays (vehicle names, location array).
  • SA-MP callbacks
  • Other public functions.
  • Stock functions.
  • Commands.
Reply
#5

First goes defines and includes then enums publics then callbacks stock and command fuctions. You cannot just come and in half of script make streamer include.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)