Raised This Month: $12 Target: $400
 3% 

[HOWTO] Compile locally with custom includes


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 06-24-2010 , 13:41   [HOWTO] Compile locally with custom includes
Reply With Quote #1

For a french version by -Kid-, click Comment compiler en local?
For a dutch version by me, click Compileren met nieuwe includes
For a list with includes, maintained by ANTICHRISTUS, click here.


The first thing you need to do is set everything up.

If you don't have an amxx installation on your pc,
you should start by downloading the latest amxx build here
If you're not planning on setting up amxx on a listen / dedicated server, you can download the base package instead of the installer.
Unzip it and navigate to the scripting folder.
Once there is should look like this.




Now you have to have the code to compile,
We're gonna use a little example that required the colorchat.inc to compile.

PHP Code:
#include <amxmodx>
#include <colorchat>

public plugin_init()
{
    
register_plugin("custom include compiling""0.1""Drekes");
    
    
set_task(100.0"TaskShowMsg", .flags "b");
}

public 
TaskShowMsg()
    
ColorChat(0BLUE"Message"); 
Before we start compiling we need to add the colorchat include to the scripting/include folder,
just copy - paste it in there.
Now, drag and drop the *.sma (in my case compiletut.sma) onto compile.exe.
For linux compile.exe is compile.so.

A console window appears with the info about the compilation. (errors, warnings, ...)

If you placed the required include right, it should look like this:



The *.amxx file can now be found in the scripting/compiled folder.



If you didn't place the include right, it looks like this:




If this occurs, check if you pasted the include in the right folder, and if it has the same name
in the script.
Attached Thumbnails
Click image for larger version

Name:	tut1.jpg
Views:	37845
Size:	74.2 KB
ID:	81819   Click image for larger version

Name:	tut2.jpg
Views:	38108
Size:	54.6 KB
ID:	81821   Click image for larger version

Name:	tut3.jpg
Views:	35650
Size:	64.9 KB
ID:	81822  
Attached Files
File Type: sma Get Plugin or Get Source (compiletut.sma - 7695 views - 2.0 KB)
File Type: inc colorchat.inc (2.3 KB, 4480 views)
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.

Last edited by drekes; 04-05-2014 at 10:56.
drekes is offline
Send a message via MSN to drekes
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 06-24-2010 , 15:30   Re: [HOWTO] Compile locally with custom includes
Reply With Quote #2

Hi Miley.
Good tutorial, making the pictures smaller would be better.
KadiR is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 06-24-2010 , 16:05   Re: [HOWTO] Compile locally with custom includes
Reply With Quote #3

You forgot that cheat shortcut on your desktop
Seriously, use Alt before you take a screenshot so you only save the active window ;)
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Old 06-24-2010, 16:10
Hawk552
This message has been deleted by Hawk552.
Old 06-24-2010, 16:23
drekes
This message has been deleted by Hawk552.
NawB
Junior Member
Join Date: Mar 2010
Old 07-09-2010 , 16:44   Re: [HOWTO] Compile locally with custom includes
Reply With Quote #4

I do have amxx, and I put in the colorchat.inc in my include folder (Where all .inc files are) Still when I drag an .sma it fails.. :S Any clues? ;o


~Thanks for standing out with me being nooby
NawB is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-09-2010 , 18:54   Re: [HOWTO] Compile locally with custom includes
Reply With Quote #5

Quote:
Originally Posted by NawB View Post
I do have amxx, and I put in the colorchat.inc in my include folder (Where all .inc files are) Still when I drag an .sma it fails.. :S Any clues? ;o


~Thanks for standing out with me being nooby
What are the compiler errors?
__________________
fysiks is offline
NawB
Junior Member
Join Date: Mar 2010
Old 07-09-2010 , 19:09   Re: [HOWTO] Compile locally with custom includes
Reply With Quote #6

Quote:
Originally Posted by fysiks View Post
What are the compiler errors?
Exactly the same as shown in his picture up there ^ (The ''You didn't install it right'' picture...
NawB is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 07-09-2010 , 19:11   Re: [HOWTO] Compile locally with custom includes
Reply With Quote #7

Can you verify that the .inc file is in the include folder?
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
NawB
Junior Member
Join Date: Mar 2010
Old 07-10-2010 , 05:16   Re: [HOWTO] Compile locally with custom includes
Reply With Quote #8

Here is a shot from my include folder; http://i30.tinypic.com/2v1kx11.jpg
NawB is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 07-10-2010 , 09:36   Re: [HOWTO] Compile locally with custom includes
Reply With Quote #9

That is strange. And you are sure it's colorchat you need and not chatcolor.inc?
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
NawB
Junior Member
Join Date: Mar 2010
Old 07-10-2010 , 16:49   Re: [HOWTO] Compile locally with custom includes
Reply With Quote #10

I have no idea :F Just downloaded the one you put up there LoL.. :S Anyway to check that? :S
NawB is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:27.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode