Gamemode based in includes
#4

Includes are not saved in the gamemodes folder, they are saved in the "pawno\includes" folder, where all the other samp includes are located.
You can create a directory there, in which you save your includes.

PHP Code:
#include <MyGamemode\Defines.inc> // Setup all #define statements and some other stuff
#include <MyGamemode\Declarations.inc> // Holds all enums and related arrays

#include <MyGamemode\PlayerFunctions.inc> // Holds all player functions
#include <MyGamemode\VehicleFunctions.inc> // Holds all vehicle functions
#include <MyGamemode\SupportFunctions.inc> // Holds all support function

#include <MyGamemode\Housing.inc> // Holds the entire housing system
#include <MyGamemode\Speedometer.inc> // Holds the Speedometer functions
#include <MyGamemode\OnGameModeInitExit.inc> // Holds OnGameModeInit and OnGameModeExit
#include <MyGamemode\Commands.inc> // Holds all commands
#include <MyGamemode\GlobalTimers.inc> // Holds all global timers

#include <MyGamemode\OnPlayerConnectDisconnect.inc> // Holds all functions related to logging in players and disconnecting them
#include <MyGamemode\OnDialogResponse.inc> // Holds the OnDialogResponse callback
#include <MyGamemode\TemporaryCommands.inc> // Holds all temporary commands 
These files are located inside "pawno\includes\MyGamemode".
Also, includes have the extension ".inc", not ".pwn".
Reply


Messages In This Thread
Gamemode based in includes - by Whillyrez - 07.02.2017, 02:36
Re: Gamemode based in includes - by Luis- - 07.02.2017, 02:39
Re: Gamemode based in includes - by Sew_Sumi - 07.02.2017, 04:56
Re: Gamemode based in includes - by AmigaBlizzard - 07.02.2017, 09:59
Re: Gamemode based in includes - by PrO.GameR - 07.02.2017, 10:29
Re: Gamemode based in includes - by AmigaBlizzard - 07.02.2017, 11:15
Re: Gamemode based in includes - by Vince - 07.02.2017, 11:46
Re: Gamemode based in includes - by Sew_Sumi - 07.02.2017, 19:55
Re: Gamemode based in includes - by PrO.GameR - 08.02.2017, 10:47
Re: Gamemode based in includes - by AmigaBlizzard - 08.02.2017, 11:02

Forum Jump:


Users browsing this thread: 1 Guest(s)