Page 1 of 1

Including - Settings in Include Files

Posted: 22 Jul 2017, 16:49
by Raheem
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 :)

Re: Including - Settings in Include Files

Posted: 02 Jan 2018, 02:49
by soumyadip77
Can You Share The ze .inc file

Re: Including - Settings in Include Files

Posted: 02 Jan 2018, 09:12
by Raheem
Already in our Mod download it from Releases section: http://escapers-zone.net/viewtopic.php?f=6&t=6

Re: Including - Settings in Include Files

Posted: 02 Sep 2018, 12:21
by DarkZombie
I did not have it in the mod pack zombie_escape.inc, so I'll download it?

Re: Including - Settings in Include Files

Posted: 02 Sep 2018, 19:35
by DarkZombie
or where can I edit this now? I do not understand.

Re: Including - Settings in Include Files

Posted: 03 Sep 2018, 01:59
by Night Fury
DarkZombie wrote: 5 years ago or where can I edit this now? I do not understand.
DarkZombie wrote: 5 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

Re: Including - Settings in Include Files

Posted: 03 Sep 2018, 16:05
by DarkZombie
Jack GamePlay wrote: 5 years ago
DarkZombie wrote: 5 years ago or where can I edit this now? I do not understand.
DarkZombie wrote: 5 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.

Re: Including - Settings in Include Files

Posted: 03 Sep 2018, 16:06
by DarkZombie
I do not have these files.
zombie_escape_stocks.inc
zombie_escape.inc

Re: Including - Settings in Include Files

Posted: 03 Sep 2018, 20:35
by Night Fury
DarkZombie wrote: 5 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

Re: Including - Settings in Include Files

Posted: 04 Sep 2018, 16:56
by DarkZombie
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.