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

Problem during compiling amxmodx


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
-=hunter=-
Senior Member
Join Date: Jul 2008
Old 08-19-2011 , 13:32   Problem during compiling amxmodx
Reply With Quote #1

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!

Last edited by -=hunter=-; 08-19-2011 at 14:04.
-=hunter=- is offline
Send a message via ICQ to -=hunter=- Send a message via Skype™ to -=hunter=-
-=hunter=-
Senior Member
Join Date: Jul 2008
Old 08-19-2011 , 14:22   Re: Problem during compiling amxmodx
Reply With Quote #2

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.
-=hunter=- is offline
Send a message via ICQ to -=hunter=- Send a message via Skype™ to -=hunter=-
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-19-2011 , 15:19   Re: Problem during compiling amxmodx
Reply With Quote #3

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
__________________

Last edited by Arkshine; 08-19-2011 at 15:24.
Arkshine is offline
-=hunter=-
Senior Member
Join Date: Jul 2008
Old 08-19-2011 , 17:23   Re: Problem during compiling amxmodx
Reply With Quote #4

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.
-=hunter=- is offline
Send a message via ICQ to -=hunter=- Send a message via Skype™ to -=hunter=-
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-19-2011 , 18:14   Re: Problem during compiling amxmodx
Reply With Quote #5

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.
Attached Files
File Type: 7z hlsdk.7z (1,021.0 KB, 141 views)
__________________
Arkshine is offline
Javivi
AlliedModders Donor
Join Date: Dec 2008
Old 08-19-2011 , 19:07   Re: Problem during compiling amxmodx
Reply With Quote #6

I use those under VS 2010 and they work fine, try them if you still have problems.
Attached Files
File Type: 7z hlsdk+metamod.7z (988.0 KB, 206 views)
__________________
Javivi is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 02-07-2012 , 13:31   Re: Problem during compiling amxmodx
Reply With Quote #7

Would anyone be willing to create a tutorial of how to set up VS2010 for AMXX module creation?
__________________
hleV is offline
Javivi
AlliedModders Donor
Join Date: Dec 2008
Old 02-07-2012 , 14:56   Re: Problem during compiling amxmodx
Reply With Quote #8

Quote:
Originally Posted by hleV View Post
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
__________________

Last edited by Javivi; 02-07-2012 at 14:59.
Javivi is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 02-07-2012 , 15:39   Re: Problem during compiling amxmodx
Reply With Quote #9

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?
__________________

Last edited by hleV; 02-07-2012 at 15:59.
hleV is offline
Javivi
AlliedModders Donor
Join Date: Dec 2008
Old 02-07-2012 , 16:00   Re: Problem during compiling amxmodx
Reply With Quote #10

They're ready to use at post #6
__________________
Javivi 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 06:44.


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