Raised This Month: $32 Target: $400
 8% 

AMXX Module Compile Error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
11922911
Senior Member
Join Date: Dec 2011
Location: Yuen Long Country
Old 04-10-2013 , 12:50   AMXX Module Compile Error
Reply With Quote #1

I am using Windows.
When i try to compile amxx original cstrike module in msvc2010 get this errors

Code:
1>------ Build started: Project: cstrike, Configuration: Release Win32 ------
1>  cstrike.cpp
1>  CstrikeHacks.cpp
1>  CstrikePlayer.cpp
1>  amxxmodule.cpp
1>..\sdk\amxxmodule.cpp(2244): error C2733: second C linkage of overloaded function 'Meta_Query' not allowed
1>          ..\sdk\amxxmodule.cpp(2243) : see declaration of 'Meta_Query'
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Please ..
Thanks in advance

Last edited by 11922911; 04-26-2013 at 08:33.
11922911 is offline
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 04-10-2013 , 20:24   Re: [Help] AMXX Module Compile Error
Reply With Quote #2

You can't declare twice Meta_Query and it should have same prototype as in metamod includes.
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
11922911
Senior Member
Join Date: Dec 2011
Location: Yuen Long Country
Old 04-10-2013 , 22:21   Re: [Help] AMXX Module Compile Error
Reply With Quote #3

What should i do?
find amxxmodule.cpp(2243) 'Meta_Query' and rename it?
11922911 is offline
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 04-11-2013 , 09:26   Re: [Help] AMXX Module Compile Error
Reply With Quote #4

check the param type,
the define function's param type must same as the declares !

edited:
I think your function should like this:
Code:
C_DLLEXPORT int Meta_Query(
                                         const char *ifvers, 
                                         plugin_info_t **pPlugInfo, 
                                         mutil_funcs_t *pMetaUtilFuncs)
change it like this :
Code:
C_DLLEXPORT int Meta_Query(
                                         char *ifvers, 
                                         plugin_info_t **pPlugInfo, 
                                         mutil_funcs_t *pMetaUtilFuncs)
__________________
QQ:116268742

Last edited by K.K.Lv; 04-11-2013 at 09:39.
K.K.Lv is offline
Send a message via MSN to K.K.Lv
11922911
Senior Member
Join Date: Dec 2011
Location: Yuen Long Country
Old 04-12-2013 , 08:20   Re: [Help] AMXX Module Compile Error
Reply With Quote #5

SOLVED. Thanks K.K.Lv.
By the way, are you chinese?
11922911 is offline
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 04-12-2013 , 09:59   Re: [Help] AMXX Module Compile Error
Reply With Quote #6

Yep
__________________
QQ:116268742
K.K.Lv is offline
Send a message via MSN to K.K.Lv
11922911
Senior Member
Join Date: Dec 2011
Location: Yuen Long Country
Old 04-12-2013 , 10:27   Re: [Help] AMXX Module Compile Error
Reply With Quote #7

cheers!
11922911 is offline
11922911
Senior Member
Join Date: Dec 2011
Location: Yuen Long Country
Old 04-14-2013 , 03:04   Re: [Help] AMXX Module Compile Error
Reply With Quote #8

I have one more question,
How to set player model in amxx module?
11922911 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-14-2013 , 03:34   Re: [Help2] AMXX Module Compile Error
Reply With Quote #9

Check Player Model (by connor) and do the same.
__________________
Arkshine is offline
11922911
Senior Member
Join Date: Dec 2011
Location: Yuen Long Country
Old 04-14-2013 , 05:02   Re: [Help2] AMXX Module Compile Error
Reply With Quote #10

(Sorry for my bad english)
i tested Connor's Player Model API
and i got a problem
player can change himself model by using setinfo "model"

Last edited by 11922911; 04-14-2013 at 05:06.
11922911 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 21:14.


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