Raised This Month: $32 Target: $400
 8% 

[HOWTO] Compile locally with custom includes


Post New Thread Reply   
 
Thread Tools Display Modes
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 07-10-2010 , 17:24   Re: [HOWTO] Compile locally with custom includes
Reply With Quote #11

And you downloaded my example plugin to?
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-11-2010 , 00:38   Re: [HOWTO] Compile locally with custom includes
Reply With Quote #12

Maybe you are doing something else wrong. Show your code.
__________________
fysiks is offline
NawB
Junior Member
Join Date: Mar 2010
Old 07-19-2010 , 19:17   Re: [HOWTO] Compile locally with custom includes
Reply With Quote #13

What code? How to acess my code? :S
NawB is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 07-19-2010 , 19:18   Re: [HOWTO] Compile locally with custom includes
Reply With Quote #14

Quote:
Originally Posted by NawB View Post
What code? How to acess my code? :S
Do you have a .sma file?
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 07-20-2010 , 05:43   Re: [HOWTO] Compile locally with custom includes
Reply With Quote #15

Quote:
Originally Posted by drekes View Post
That is strange. And you are sure it's colorchat you need and not chatcolor.inc?

It's chatcolor.inc -> #include <chatcolor>
__________________
You can do anything you set your mind to, man.

Devil259 is offline
MMYTH
BANNED
Join Date: May 2010
Location: Brazil
Old 07-26-2010 , 06:34   Re: [HOWTO] Compile locally with custom includes
Reply With Quote #16

very very poor
MMYTH is offline
Send a message via MSN to MMYTH
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 07-26-2010 , 11:22   Re: [HOWTO] Compile locally with custom includes
Reply With Quote #17

#include <filename> includes filename.inc from includes folder
#include "filename.inc" includes filename.inc from the current directory, it can also have any extension
#include "includes/filename.inc" is the same as #include <filename> but it's better to use the <> method for good practice.

Also, I think this tutorial is too long and too complex for new people, I recommend using a VERRY smaller version without too much unneeded details... like so:

Quote:
To compile locally you first need to have amxmodx installed.
Compile locally only if the online compiler ("Get plugin" link) outputs errors or plugin developer recommends local compile.

Placing files in the right folders
The plugin soruces (.sma files) go into the amxmodx/scripting folder.

If plugin has additional include (.inc or .inl) files just place them in amxmodx/scripting/include folder.


Compiling into an amxx
To compile just drag and drop the sma file over compiler.exe to compile just that file or double click compiler.exe to compile all sma files in the scripting folder.

Compilation time depends on plugin size, I don't think there's a plugin that takes more than a minute to compile.


Installing compiled plugins
Compiled plugins are placed in amxmodx/scripting/compiled, you need to cut or copy them from there to amxmodx/plugins folder abd after that write their names in plugins.ini, obviously.
Too much details bores or scares the reader :} just my opinion.

There should be an additional part or another tutorial for adding custom includes to your plugin, don't mix them. But I think there is one already :-?
__________________

Last edited by Hunter-Digital; 07-26-2010 at 11:24.
Hunter-Digital is offline
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 07-31-2010 , 17:06   Re: [HOWTO] Compile locally with custom includes
Reply With Quote #18

Quote:
Originally Posted by Hunter-Digital View Post
#include "filename.inc" includes filename.inc from the current directory, it can also have any extension
I always do it that way and it works even without having the includes in the current directory, works fine having them in /includes/. Using Pawn Studio.
__________________
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
s3rserii
Senior Member
Join Date: Jan 2010
Old 08-14-2010 , 10:04   Re: [HOWTO] Compile locally with custom includes
Reply With Quote #19

alls shows right but its not create a "compiled" folder with the .amxx plugins inside.. :/

when i recompile it egain its shows the message that it is allready compiled..

can anyone help?
s3rserii is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 08-14-2010 , 17:20   Re: [HOWTO] Compile locally with custom includes
Reply With Quote #20

Are you sure the folder doesn't exists. I can't see how it would do that.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
Reply



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 19:44.


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