View Single Post
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 03-23-2021 , 16:04   Re: [TUT] Compiling AMXX plugins with Sublime Text
Reply With Quote #217

Could someone perhaps help me? I've recently installed my new pc with Sublime on it and AmxxEditor. I'm only having trouble compiling plugins... This is the output when i try to compile a standard test plugin.

Code:
Compiling test... Current time is: 21:01:53,94 - di

AMX Mod X Compiler 1.10.0.5416
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2013 AMX Mod X Team

Header size:            192 bytes
Code size:               92 bytes
Data size:              376 bytes
Stack/heap size:      16384 bytes
Total requirements:   17044 bytes
Done.
There was an compilation error. Exiting... 

Took 0:00:00,07 seconds to run this script.

[Finished in 0.1s]
PHP Code:
/* Sublime AMXX Editor v2.2 */

#include <amxmodx>
// #include <amxmisc>
// #include <cstrike>
// #include <engine>
// #include <fakemeta>
// #include <hamsandwich>
// #include <fun>
// #include <xs>
// #include <sqlx>

#define PLUGIN  "New Plug-In"
#define VERSION "1.0"
#define AUTHOR  "Author"

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)

    
// Add your code here...

However, when i use my test.sma file on amxxpc.exe, it compiles without any problems.

EDIT: found the problem, there was a duplicate map somewhere in my files that didn't belong there.
__________________

Last edited by Napoleon_be; 03-23-2021 at 16:12.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be