AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Error with Include while Compiling (https://forums.alliedmods.net/showthread.php?t=243037)

dfb212 06-28-2014 19:10

Error with Include while Compiling
 
1 Attachment(s)
So Im trying to Compile a Plugin with these Includes:

#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <cstrike>
#include <fun>
#include <fakemeta>
#include <dhudmessage>

I have all of them in my AMX Mod X\files\base\scripting\include folder
But when I try to Compile it, I have the following error:

http://i.imgur.com/OTBtVyd.png

If you guys could help me I would be very grateful :fox:

The Plugin Im trying to compile:

fysiks 06-28-2014 19:14

Re: Error with Include while Compiling
 
The .sma file must be in the "scripting" folder of AMX Mod X for it to compile correctly. Also, I've had issues in the past where I did not have permission to write to a folder (via a script) in the Program Files directory. If moving the .sma file to the correct location doesn't fix the error, move the AMX Mod X files to your documents and try again (with the .sma in the "scripting" folder).

dfb212 06-28-2014 19:31

Re: Error with Include while Compiling
 
Quote:

Originally Posted by fysiks (Post 2158956)
The .sma file must be in the "scripting" folder of AMX Mod X for it to compile correctly. Also, I've had issues in the past where I did not have permission to write to a folder (via a script) in the Program Files directory. If moving the .sma file to the correct location doesn't fix the error, move the AMX Mod X files to your documents and try again (with the .sma in the "scripting" folder).

I moved the AMX Mod X folder to My Documents and It worked, Thanks! ... But I got the following errors:

http://i.imgur.com/lgXc4a4.png

Could you please help me fixing it?

fysiks 06-28-2014 19:39

Re: Error with Include while Compiling
 
I don't have the dhudmessage include file nor do I have any experience using it. However, it should be easy to figure it out. Look in that include file and find the function that is causing the error. The error says that one of the arguments does not match the definition. So, look at its definition to see what you are supposed to be giving the function and compare that to what you are actually giving to the function.

dfb212 06-28-2014 21:52

Re: Error with Include while Compiling
 
Quote:

Originally Posted by fysiks (Post 2158971)
I don't have the dhudmessage include file nor do I have any experience using it. However, it should be easy to figure it out. Look in that include file and find the function that is causing the error. The error says that one of the arguments does not match the definition. So, look at its definition to see what you are supposed to be giving the function and compare that to what you are actually giving to the function.

Fixed. Thanks for your help :D


All times are GMT -4. The time now is 21:06.

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