[Tips] Creating a server from scratch?
#3

here's some tips for scripting:
1. keep everything consistent, this goes for formatting messages sent to players to naming variables.
2. if you're going to keep using a chunk of code then consider putting it in a stock, if you need it triggered by a timer or CallRemoteFunction then you need to make it public
3. ZCMD and sscanf, zcmd is the fastest released command processor for sa-mp and sscanf has a lot of features. Another nice script is foreach which speeds up looping through players and allows you to create groups of players to loop through
4. keep everything in sections, all stocks together, all sa-mp default call backs together ect.

that's enough tips for you for now
Reply


Messages In This Thread
[Tips] Creating a server from scratch? - by Outcast - 04.07.2011, 02:09
Re: [Tips] Creating a server from scratch? - by Jack_Leslie - 04.07.2011, 02:16
Re: [Tips] Creating a server from scratch? - by cessil - 04.07.2011, 11:33
Re: [Tips] Creating a server from scratch? - by Hal - 04.07.2011, 12:06
Re: [Tips] Creating a server from scratch? - by Outcast - 05.07.2011, 00:29
Re: [Tips] Creating a server from scratch? - by Bakr - 05.07.2011, 00:59
Re: [Tips] Creating a server from scratch? - by Deskoft - 05.07.2011, 02:06

Forum Jump:


Users browsing this thread: 1 Guest(s)