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

Plugin Compiling...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HerpesDerpes
New Member
Join Date: Mar 2012
Old 03-28-2012 , 18:05   Plugin Compiling...
Reply With Quote #1

So, I'm trying to make this plugin for my friend's server. Whenever someone types !purchase it brings them to an motd panel with the website to donate and such. To do the motd panel, I need sourcemod.inc. So I got sourcemod and put all the include files in the Notepad++ include folder. When I try to compile though, I get this.

Code:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

C:\Users\Bryce\Downloads\npp.5.9.8.bin\pawn.compiler\include\sourcemod.inc(41) : error 010: invalid function or declaration
C:\Users\Bryce\Downloads\npp.5.9.8.bin\pawn.compiler\include\sourcemod.inc(43) : error 001: expected token: "=", but found "["
C:\Users\Bryce\Downloads\npp.5.9.8.bin\pawn.compiler\include\sourcemod.inc(44) : error 001: expected token: "=", but found "["
C:\Users\Bryce\Downloads\npp.5.9.8.bin\pawn.compiler\include\sourcemod.inc(45) : error 001: expected token: "=", but found "["
C:\Users\Bryce\Downloads\npp.5.9.8.bin\pawn.compiler\include\sourcemod.inc(46) : error 001: expected token: "=", but found "["
C:\Users\Bryce\Downloads\npp.5.9.8.bin\pawn.compiler\include\sourcemod.inc(47) : error 001: expected token: "=", but found "["
C:\Users\Bryce\Downloads\npp.5.9.8.bin\pawn.compiler\include\sourcemod.inc(48) : error 010: invalid function or declaration
C:\Users\Bryce\Downloads\npp.5.9.8.bin\pawn.compiler\include\handles.inc(43) : error 020: invalid symbol name ""
C:\Users\Bryce\Downloads\npp.5.9.8.bin\pawn.compiler\include\handles.inc(44) : error 010: invalid function or declaration
C:\Users\Bryce\Downloads\npp.5.9.8.bin\pawn.compiler\include\handles.inc(77) : warning 213: tag mismatch
C:\Users\Bryce\Downloads\npp.5.9.8.bin\pawn.compiler\include\handles.inc(95) : warning 207: unknown #pragma
C:\Users\Bryce\Downloads\npp.5.9.8.bin\pawn.compiler\include\handles.inc(95) : error 038: extra characters on line
C:\Users\Bryce\Downloads\npp.5.9.8.bin\pawn.compiler\include\functions.inc(360) : error 010: invalid function or declaration
C:\Users\Bryce\Downloads\npp.5.9.8.bin\pawn.compiler\include\functions.inc(493) : warning 213: tag mismatch
C:\Users\Bryce\Downloads\npp.5.9.8.bin\pawn.compiler\include\functions.inc(494) : warning 213: tag mismatch
C:\Users\Bryce\Downloads\npp.5.9.8.bin\pawn.compiler\include\timers.inc(48) : error 010: invalid function or declaration
C:\Users\Bryce\Downloads\npp.5.9.8.bin\pawn.compiler\include\timers.inc(58) : error 020: invalid symbol name ""
C:\Users\Bryce\Downloads\npp.5.9.8.bin\pawn.compiler\include\timers.inc(68) : error 020: invalid symbol name ""
C:\Users\Bryce\Downloads\npp.5.9.8.bin\pawn.compiler\include\timers.inc(77) : error 020: invalid symbol name ""
C:\Users\Bryce\Downloads\npp.5.9.8.bin\pawn.compiler\include\timers.inc(78) : error 010: invalid function or declaration
C:\Users\Bryce\Downloads\npp.5.9.8.bin\pawn.compiler\include\admin.inc(266) : warning 207: unknown #pragma
C:\Users\Bryce\Downloads\npp.5.9.8.bin\pawn.compiler\include\admin.inc(266) : error 038: extra characters on line
C:\Users\Bryce\Downloads\npp.5.9.8.bin\pawn.compiler\include\admin.inc(272) : warning 207: unknown #pragma
C:\Users\Bryce\Downloads\npp.5.9.8.bin\pawn.compiler\include\admin.inc(272) : error 038: extra characters on line
C:\Users\Bryce\Downloads\npp.5.9.8.bin\pawn.compiler\include\admin.inc(338) : warning 213: tag mismatch
C:\Users\Bryce\Downloads\npp.5.9.8.bin\pawn.compiler\include\admin.inc(442) : warning 213: tag mismatch
C:\Users\Bryce\Downloads\npp.5.9.8.bin\pawn.compiler\include\keyvalues.inc(63) : warning 213: tag mismatch
C:\Users\Bryce\Downloads\npp.5.9.8.bin\pawn.compiler\include\keyvalues.inc(63) : warning 213: tag mismatch
C:\Users\Bryce\Downloads\npp.5.9.8.bin\pawn.compiler\include\keyvalues.inc(145) : warning 213: tag mismatch
C:\Users\Bryce\Downloads\npp.5.9.8.bin\pawn.compiler\include\textparse.inc(111) : error 010: invalid function or declaration
C:\Users\Bryce\Downloads\npp.5.9.8.bin\pawn.compiler\include\textparse.inc(131) : error 010: invalid function or declaration
C:\Users\Bryce\Downloads\npp.5.9.8.bin\pawn.compiler\include\textparse.inc(152) : error 010: invalid function or declaration
C:\Users\Bryce\Downloads\npp.5.9.8.bin\pawn.compiler\include\textparse.inc(165) : error 010: invalid function or declaration
C:\Users\Bryce\Downloads\npp.5.9.8.bin\pawn.compiler\include\textparse.inc(173) : error 010: invalid function or declaration
C:\Users\Bryce\Downloads\npp.5.9.8.bin\pawn.compiler\include\textparse.inc(194) : error 010: invalid function or declaration
C:\Users\Bryce\Downloads\npp.5.9.8.bin\pawn.compiler\include\clients.inc(295) : warning 207: unknown #pragma
C:\Users\Bryce\Downloads\npp.5.9.8.bin\pawn.compiler\include\clients.inc(295) : error 038: extra characters on line
C:\Users\Bryce\Downloads\npp.5.9.8.bin\pawn.compiler\include\clients.inc(703) : warning 213: tag mismatch
C:\Users\Bryce\Downloads\npp.5.9.8.bin\pawn.compiler\include\clients.inc(719) : warning 213: tag mismatch
C:\Users\Bryce\Downloads\npp.5.9.8.bin\pawn.compiler\include\console.inc(85) : warning 201: redefinition of constant/macro (symbol "FCVAR_CLIENTDLL")
C:\Users\Bryce\Downloads\npp.5.9.8.bin\pawn.compiler\include\console.inc(87) : warning 201: redefinition of constant/macro (symbol "FCVAR_PROTECTED")
C:\Users\Bryce\Downloads\npp.5.9.8.bin\pawn.compiler\include\console.inc(88) : warning 201: redefinition of constant/macro (symbol "FCVAR_SPONLY")
C:\Users\Bryce\Downloads\npp.5.9.8.bin\pawn.compiler\include\console.inc(89) : warning 201: redefinition of constant/macro (symbol "FCVAR_ARCHIVE")
C:\Users\Bryce\Downloads\npp.5.9.8.bin\pawn.compiler\include\console.inc(91) : warning 201: redefinition of constant/macro (symbol "FCVAR_USERINFO")
C:\Users\Bryce\Downloads\npp.5.9.8.bin\pawn.compiler\include\console.inc(92) : warning 201: redefinition of constant/macro (symbol "FCVAR_PRINTABLEONLY")
C:\Users\Bryce\Downloads\npp.5.9.8.bin\pawn.compiler\include\console.inc(93) : warning 201: redefinition of constant/macro (symbol "FCVAR_UNLOGGED")
C:\Users\Bryce\Downloads\npp.5.9.8.bin\pawn.compiler\include\console.inc(331) : error 010: invalid function or declaration

Compilation aborted.
26 Errors.
Could not locate output file C:\Users\Bryce\Downloads\npp.5.9.8.bin\auto.recover\.amx (compile failed).
================ READY ================
This is my code:
Code:
#include <amxmodx>
#include <sourcemod>


public plugin_init()
{
	register_plugin("Purchase", "1.0", "Herpes")
	register_clcmd("say !purchase", "openUrl")
	register_clcmd("say /purchase", "openUrl")
}

public openUrl(client, args)
{
	ShowMOTDPanel(client, "Purchase", "http://wwww.simplicity2g.org", MOTDPANEL_TYPE_URL)
	return plugin_Continue
}
Please help?

Last edited by HerpesDerpes; 03-28-2012 at 18:29.
HerpesDerpes is offline
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 03-28-2012 , 18:42   Re: Plugin Compiling...
Reply With Quote #2

Wrong seccion.
__________________
ATWWMH - MiniDuels
Madness is like gravity, just need a little push.
lucas_7_94 is offline
Send a message via Skype™ to lucas_7_94
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-28-2012 , 19:49   Re: Plugin Compiling...
Reply With Quote #3

You can't use AMX Mod X on Source servers. You have to use SourceMod ONLY.
__________________
fysiks is offline
HerpesDerpes
New Member
Join Date: Mar 2012
Old 03-28-2012 , 20:07   Re: Plugin Compiling...
Reply With Quote #4

Oh. Thank you. So how could I do this using Sourcemod only?
HerpesDerpes is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-28-2012 , 20:13   Re: Plugin Compiling...
Reply With Quote #5

Quote:
Originally Posted by HerpesDerpes View Post
Oh. Thank you. So how could I do this using Sourcemod only?
I have no idea (You are currently in the AMX Mod X section), you should post in a section that has something to do with SourceMod.
__________________
fysiks is offline
HerpesDerpes
New Member
Join Date: Mar 2012
Old 03-28-2012 , 20:14   Re: Plugin Compiling...
Reply With Quote #6

Alright, thank you.
HerpesDerpes is offline
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 23:20.


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