Helping Topics
-
Raheem
- Mod Developer
- Posts: 2213
- Joined: 7 years ago
-
Contact:
-
Quote
-
0
login to like this post
#1
Post
by Raheem » 7 years ago
Including - Settings in Include Files
In this topic we will learn about how to include .inc files to your plugin you write. And then we will look at some settings one can change in these files and recompile again to see results.
1-Including
- When you include zombie_escape.inc in plugin like:
This equal to:
Code: Select all
#include <amxmodx>
#include <reapi>
#include <fakemeta>
#include <hamsandwich>
#include <engine>
#include <fvault>
#include <amxmisc>
#include <zombie_escape_stocks>
So you don't need to include anything which is already included. That mean if you do something like that:
Code: Select all
#include <zombie_escape>
#include <amxmodx>
This will give you errors because #include <amxmodx>
is already defined in #include <zombie_escape>
.
Ok now if you have another include file like fun.inc and it's already not in zombie_escape.inc so you can do this:
Code: Select all
#include <zombie_escape>
#include <fun>
So at the end please take time to open include files and read before you write your code. Never define something that already defined.
2-Settings in include Files
- In zombie_escape.inc file you can change:
#define ZE_VERSION "1.1"
- Zombie Escape Version.
#define AUTHORS "ZE Dev Team"
- Mod Authors.
#define MAX_EXTRA_ITEMS 40
- Max Extra-Items you can add on your server.
- In zombie_escape_stocks.inc you can change:
#define ZE_PREFIX "!y[!gZombie Escape!y] "
- Zombie Escape Tag appears in colored chat message.
- After any edit in .inc file you will need to Re-Compile plugins again so changes take effect.
Any problem you face please post down and i'll help you
He who fails to plan is planning to fail
-
DarkZombie
- Member
- Posts: 76
- Joined: 6 years ago
-
Contact:
-
Quote
-
0
login to like this post
#4
Post
by DarkZombie » 6 years ago
I did not have it in the mod pack zombie_escape.inc, so I'll download it?
-
DarkZombie
- Member
- Posts: 76
- Joined: 6 years ago
-
Contact:
-
Quote
-
0
login to like this post
#5
Post
by DarkZombie » 6 years ago
or where can I edit this now? I do not understand.
-
Night Fury
- Mod Developer
- Posts: 677
- Joined: 7 years ago
-
Contact:
-
Quote
-
0
login to like this post
#6
Post
by Night Fury » 6 years ago
DarkZombie wrote: ↑6 years ago
or where can I edit this now? I do not understand.
DarkZombie wrote: ↑6 years ago
I did not have it in the mod pack zombie_escape.inc, so I'll download it?
You can find it in addons/amxmodx/scripting/include
Want your own mod edition? PM me.
Accepting private projects.
Discord: Fury#7469
-
DarkZombie
- Member
- Posts: 76
- Joined: 6 years ago
-
Contact:
-
Quote
-
0
login to like this post
#7
Post
by DarkZombie » 6 years ago
Jack GamePlay wrote: ↑6 years ago
DarkZombie wrote: ↑6 years ago
or where can I edit this now? I do not understand.
DarkZombie wrote: ↑6 years ago
I did not have it in the mod pack zombie_escape.inc, so I'll download it?
You can find it in addons/amxmodx/scripting/include
Yes, I know the way, but the problem is that this file is not there for me, and I downloaded the linux pack. And it works without the file.
I do not understand.
-
DarkZombie
- Member
- Posts: 76
- Joined: 6 years ago
-
Contact:
-
Quote
-
0
login to like this post
#8
Post
by DarkZombie » 6 years ago
I do not have these files.
zombie_escape_stocks.inc
zombie_escape.inc
-
Night Fury
- Mod Developer
- Posts: 677
- Joined: 7 years ago
-
Contact:
-
Quote
-
0
login to like this post
#9
Post
by Night Fury » 6 years ago
DarkZombie wrote: ↑6 years ago
I do not have these files.
zombie_escape_stocks.inc
zombie_escape.inc
Download the mod & you will find it.
Link:
viewtopic.php?f=6&t=6
Want your own mod edition? PM me.
Accepting private projects.
Discord: Fury#7469
-
DarkZombie
- Member
- Posts: 76
- Joined: 6 years ago
-
Contact:
-
Quote
-
0
login to like this post
#10
Post
by DarkZombie » 6 years ago
I can see it in the pack now, I do not know, but the last time i downloaded it was not there, and without it the files way it works. so it's not clear.
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute
Register
Sign in
Users browsing this forum: No registered users and 0 guests