-
Notifications
You must be signed in to change notification settings - Fork 14
Creating and saving files
You can go to File
-> New
or press the default hotkey Ctrl + N
to create a new empty SourcePawn script and open it in the editor. The file will be created at the root of your selected config directory.
You can go to File
-> New from Template
or press the default hotkey Ctrl + Shift + N
to create a new script from a pre-made template.
In the Templates window, you can select all kinds of templates from which to start your new script from. Select one, give your new script a location and a name, and hit 'Save' to create it.
Here, you can also add new templates, and edit or delete existing ones. Just right click on any template and select the option you desire.
Right click on any template and hit 'Add' to enter the template addition mode.
- In the top text box, insert a name for your new template.
- In the code editor, design your template.
- In the bottom textbox, write the name that your script created based on that template will have by default.
After this, hit 'Save' to save your new template.
To edit a template, just right click on any template, hit 'Edit', and repeat the steps described in the 'Adding templates' explanation.
To delete a template, right click on any template and hit 'Delete' to delete that template.
Using SPCode
- Opening files
- Creating and saving files
- Adding and editing configurations
- Using the Object Browser
- Starting a game server
- Updating SPCode
Working with plugins
- Writing plugins
- Compiling plugins
- Finding compilation errors
- Copying plugins
- Uploading plugins to FTP
- Reloading plugins in a server
- Decompiling plugins
- Disassembling plugins
Configuring the editor