Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GENERAL COMMENTS:
- - Pawn is not C++ or C. It is a simple language with a C-like syntax. So it looks very similar, but there are some differences.
- - Grandlarc stands for 'Grand Larceny', which is a felony, just like Grand Theft Auto is a crime.
- - Localhost refers to 127.0.0.1 which is the IP-adres that your network card uses to refer to itself.
- - The reason your server didn't work the first time, was because you had something selected in the console, which is denoted by the white selection box. In Windows the program pauzes when you do that, which means your server will not react. To fix this and continue running the script again, just press enter.
- - You can also just type 'gmx' in the server console to reload the gamemode. This way you don't have to login every time after restarting.
- - It is pronounced 'parameter', not 'perimeter' .
- PAWNO.EXE:
- - Try to run pawno as administrator to get rid of the error when you first open it.
- - The buttons at the top of pawno have keyboard shortcuts. For example to find a word, you can use CTRL-F. To compile, you can use F5. These are quicker then the buttons at the top and after a while they become muscle memory.
- SCRIPTING:
- - The 0x at the beginning is needed to let the compiler know the the following numbers/letters are in hexadecimal. The FF at the end is used for the transparancy of the color. This transparancy is only used in mapicons (I think, not sure).
- - You can use 'WEAPON_DEAGLE' in the code instead of using the numeric value. That way, when you look back at your code in the future, you immediately see what weapon it is instead of having to look up what weapon the 24 is.
- SERVER.CFG:
- - Lanmode is deprecated and doesn't do anything anymore.
- - Rcon stands for 'Remote Console', because you can control your server remotely via the console even when you're not at the computer or server that is running the gamemode.
- - Mtu stands for 'Maximum Transmission Unit' and is related to the downloading of the custom models.
- - See http://wiki.sa-mp.com/wiki/Server.cfg for more information on what some of these options do.
- LIBRARIES:
- - Sscanf stands for 'String Scan Format'. This means that the 'string' entered by the user will be 'scanned' for the given 'format specifiers'.
- - The libraries only have to be put in the includes folder in the pawno directory. When you use '#include <my_library>' in your script, the compiler looks in the standard library directory, which is 'root/pawno/include', to find the library. So, putting the libraries in the other include folder doesn't do anything.
- FOLDER STRUCTURE:
- - Announce.exe is needed if you set announce to 1 in server.cfg. It is used to announce your server to the SA-MP master list. You don't need to open it manually, it happens automatically.
- - Samp-npc.exe is needed if you use NPCs. If you have 10 NPCs connected to the server, there will be 10 instances of this file running (I think, not sure). You don't need to open it manually, it happens automatically.
- - The include directory in the root folder is different from the include directory in the pawno folder. The first is just a collection of commonly used functions. The latter contains the actual libraries. The grandlarc gamemode is the only one that uses the first folder. I recommend just deleting the first folder and its contents, since people usually put the declared functions in that folder directly in the script anyway. Having 2 include folders is confusing. I've had to explain a few times on the forum that people had put the needed library in the wrong folder.
- - The scriptfiles directory is used by the first include folder to create some default vehicle and player spawns. The grandlarc gamemode uses it for example. I recommend just deleting this folder and its contents, since people seem to ignore it anyway.
- - So, if you want to create a server from scratch and you're not going to use the things I recommended to delete above, this is how your directory should look like:
- root
- ├───filterscripts
- │ └───(empty)
- ├───gamemodes
- │ └───(empty)
- ├───models
- │ └───(empty)
- ├───npcmodes
- │ ├───recordings
- │ │ └───(maybe you'll use these files in the future)
- │ └───(maybe you'll use these files in the future)
- ├───pawno
- │ ├───include
- │ │ └───(let everything be)
- │ └───(let everything be)
- ├───plugins
- │ └───(empty)
- ├───announce.exe
- ├───samp-npc.exe
- ├───samp-server.exe
- └───server.cfg
Advertisement
Add Comment
Please, Sign In to add comment