Including - Settings in Include Files

Helping Topics
Post Reply
User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1869
Joined: 2 Years Ago
Location: Egypt
Has thanked: 31 times
Been thanked: 101 times
Age: 21
Contact:

Including - Settings in Include Files

#1

Post by Raheem » 2 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:

    Code: Select all

    #include <zombie_escape>
    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 :)
You don't know? Learn and you will know.

soumyadip77
Member
Member
India
Posts: 9
Joined: 1 Year Ago
Has thanked: 0
Been thanked: 0
Contact:

#2

Post by soumyadip77 » 1 Year Ago

Can You Share The ze .inc file

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1869
Joined: 2 Years Ago
Location: Egypt
Has thanked: 31 times
Been thanked: 101 times
Age: 21
Contact:

#3

Post by Raheem » 1 Year Ago

Already in our Mod download it from Releases section: viewtopic.php?f=6&t=6
You don't know? Learn and you will know.

User avatar
DarkZombie
Member
Member
Hungary
Posts: 69
Joined: 11 Months Ago
Has thanked: 16 times
Been thanked: 0
Contact:

#4

Post by DarkZombie » 10 Months Ago

I did not have it in the mod pack zombie_escape.inc, so I'll download it?

User avatar
DarkZombie
Member
Member
Hungary
Posts: 69
Joined: 11 Months Ago
Has thanked: 16 times
Been thanked: 0
Contact:

#5

Post by DarkZombie » 10 Months Ago

or where can I edit this now? I do not understand.

User avatar
Jack GamePlay
Mod Developer
Mod Developer
Egypt
Posts: 576
Joined: 2 Years Ago
Location: Egypt
Has thanked: 34 times
Been thanked: 47 times
Age: 19
Contact:

#6

Post by Jack GamePlay » 10 Months Ago

DarkZombie wrote:
10 Months Ago
or where can I edit this now? I do not understand.
DarkZombie wrote:
10 Months 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
Not interested in CS/Pawn anymore.
Accepting web projects.

User avatar
DarkZombie
Member
Member
Hungary
Posts: 69
Joined: 11 Months Ago
Has thanked: 16 times
Been thanked: 0
Contact:

#7

Post by DarkZombie » 10 Months Ago

Jack GamePlay wrote:
10 Months Ago
DarkZombie wrote:
10 Months Ago
or where can I edit this now? I do not understand.
DarkZombie wrote:
10 Months 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.

User avatar
DarkZombie
Member
Member
Hungary
Posts: 69
Joined: 11 Months Ago
Has thanked: 16 times
Been thanked: 0
Contact:

#8

Post by DarkZombie » 10 Months Ago

I do not have these files.
zombie_escape_stocks.inc
zombie_escape.inc

User avatar
Jack GamePlay
Mod Developer
Mod Developer
Egypt
Posts: 576
Joined: 2 Years Ago
Location: Egypt
Has thanked: 34 times
Been thanked: 47 times
Age: 19
Contact:

#9

Post by Jack GamePlay » 10 Months Ago

DarkZombie wrote:
10 Months 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
Not interested in CS/Pawn anymore.
Accepting web projects.

User avatar
DarkZombie
Member
Member
Hungary
Posts: 69
Joined: 11 Months Ago
Has thanked: 16 times
Been thanked: 0
Contact:

#10

Post by DarkZombie » 10 Months 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.

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests