What's coming first in script? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: What's coming first in script? (
/showthread.php?tid=487391)
What's coming first in script? -
yaron0600 - 13.01.2014
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?]
Re: What's coming first in script? -
]Rafaellos[ - 13.01.2014
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
Re: What's coming first in script? -
newbie scripter - 13.01.2014
1st = include or a define.
Re: What's coming first in script? - Emmet_ - 13.01.2014
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.
Re: What's coming first in script? -
xZdadyZx - 13.01.2014
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.