AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Module Coding (https://forums.alliedmods.net/forumdisplay.php?f=9)
-   -   Problem during compiling amxmodx (https://forums.alliedmods.net/showthread.php?t=165125)

-=hunter=- 08-19-2011 13:32

Problem during compiling amxmodx
 
Hello! I have read the following article: http://wiki.amxmodx.org/Module_Writing and do what are written. Some links are broken in this url (in Unix2Dos the Files and in Platform SDK) and I dont know what to do with this.
I installed Microsoft Visual Studio 2010, downloaded latest amxmodx sources, hlsdk, metamod sources and changed CR to CR+LF in metamod sdk.
But compiling with error.

MVS2010 swears on the following code like:
PHP Code:

#define RETURN_ERRNO(retval, errval) \

    
do { meta_errno=errval; return(retval); } while(0

Help me please to compile amxmodx module!

-=hunter=- 08-19-2011 14:22

Re: Problem during compiling amxmodx
 
I have found solution (deleted a superfluous transfer of a line):
Quote:

#define RETURN_ERRNO(retval, errval) \
do { meta_errno=errval; return(retval); } while(0)
Also was some warnings. For removing this warnings I commented "#define SERVER_EXECUTE" in winspool.h and "#define ARRAYSIZE(A)" in winnt.h.

Arkshine 08-19-2011 15:19

Re: Problem during compiling amxmodx
 
You have nothing to remove. It compiles fine as it is. Don't delete things randomly.

If you want metamod fixed, try this one : https://forums.alliedmods.net/showpo...83&postcount=2

-=hunter=- 08-19-2011 17:23

Re: Problem during compiling amxmodx
 
Arkshine Thanks for metamod but I already solved problem in previous post.
I tried your version of fixed metamod and uncommented lines above. After this again appeared warnings.

Arkshine 08-19-2011 18:14

Re: Problem during compiling amxmodx
 
1 Attachment(s)
I've forgotten to attach hlsdk too.

But again, you should not removed line randomly from some .h file. It's there for a good reason.

Javivi 08-19-2011 19:07

Re: Problem during compiling amxmodx
 
1 Attachment(s)
I use those under VS 2010 and they work fine, try them if you still have problems.

hleV 02-07-2012 13:31

Re: Problem during compiling amxmodx
 
Would anyone be willing to create a tutorial of how to set up VS2010 for AMXX module creation?

Javivi 02-07-2012 14:56

Re: Problem during compiling amxmodx
 
Quote:

Originally Posted by hleV (Post 1646143)
Would anyone be willing to create a tutorial of how to set up VS2010 for AMXX module creation?

I've done that for a friend some time ago, the quality isn't so great, but you can use it anyways
http://www.youtube.com/watch?v=pgjI__B5Eh8

hleV 02-07-2012 15:39

Re: Problem during compiling amxmodx
 
Ha, thanks. It appears that I needed to specify which HLSDK's subfolders to include, as I've been including the root one only.
And what about this part: http://wiki.amxmodx.org/Module_Writi...2Dos_the_Files?

Javivi 02-07-2012 16:00

Re: Problem during compiling amxmodx
 
They're ready to use at post #6


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

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