The Sky's the Limit ^_^
- Joined
- Jul 3, 2010
- Messages
- 722
- Reaction score
- 58
Clean source\Gunz\ZChat_Cmds.cpp(1268) : error C2660: 'ZPostLadderRequestChallenge' : function does not take 3 arguments
void ChatCmd_LadderTest(const char* line,const int argc, char **const argv)
{
// »ç¿ëÇÏ´Â ºÎºÐÀÌ ¾ø¾î¼ µð¹ö±×¿ëÀ¸·Î ¼öÁ¤ÇÔ. -by SungE 2007-04-02
#ifdef _DEBUG
if (argc == 1)
{
char szPlayerName[MATCHOBJECT_NAME_LENGTH];
strcpy(szPlayerName, ZGetMyInfo()->GetCharName());
char* pName[1];
pName[0] = szPlayerName;
[B][COLOR="#FF0000"]ZPostLadderRequestChallenge(pName, 1, 0);
[/COLOR][/B] } else if (argc == 2)
{
char szPlayerName[MATCHOBJECT_NAME_LENGTH], szTeamMember1[MATCHOBJECT_NAME_LENGTH];
strcpy(szPlayerName, ZGetMyInfo()->GetCharName());
strcpy(szTeamMember1, argv[1]);
char*pName[2];
pName[0] = szPlayerName;
pName[1] = szTeamMember1;
[B][COLOR="#FF0000"]ZPostLadderRequestChallenge(pName, 2, 0);
[/COLOR][/B] }
#endif
}
open your zpost.h search for ZPostLadderRequestChallenge and paste here the whole inline
inline void ZPostLadderRequestChallenge(char** ppMemberCharNames, const int nMemberCount, unsigned long int nOptions, unsigned long int nAntiLead) // ÀڽűîÁö Æ÷ÇÔ
{
void* pBlobMembersName = MMakeBlobArray(sizeof(MTD_ReplierNode), nMemberCount);
for (int i = 0; i < nMemberCount; i++)
{
MTD_LadderTeamMemberNode* pMemberNode = (MTD_LadderTeamMemberNode*)MGetBlobArrayElement(pBlobMembersName, i);
strcpy(pMemberNode->szName, ppMemberCharNames[i]);
}
ZPOSTCMD4( MC_MATCH_LADDER_REQUEST_CHALLENGE, MCmdParamInt(nMemberCount), MCmdParamUInt(nOptions),
MCmdParamBlob(pBlobMembersName, MGetBlobArraySize(pBlobMembersName)), MCmdParamUInt(nAntiLead) );
MEraseBlobArray(pBlobMembersName);
}
inline void ZPostLadderCancel()
{
ZPOSTCMD0(MC_MATCH_LADDER_REQUEST_CANCEL_CHALLENGE)
}
well, your ZPostLadderRequestChallenge takes 4 arguments and not 3.. you did ZPostLadderRequestChallenge(1,2,3) with 3 arguments and you need 4Hey, thanks here it is:
Code:inline void ZPostLadderRequestChallenge(char** ppMemberCharNames, const int nMemberCount, unsigned long int nOptions, unsigned long int nAntiLead) // ÀڽűîÁö Æ÷ÇÔ { void* pBlobMembersName = MMakeBlobArray(sizeof(MTD_ReplierNode), nMemberCount); for (int i = 0; i < nMemberCount; i++) { MTD_LadderTeamMemberNode* pMemberNode = (MTD_LadderTeamMemberNode*)MGetBlobArrayElement(pBlobMembersName, i); strcpy(pMemberNode->szName, ppMemberCharNames[i]); } ZPOSTCMD4( MC_MATCH_LADDER_REQUEST_CHALLENGE, MCmdParamInt(nMemberCount), MCmdParamUInt(nOptions), MCmdParamBlob(pBlobMembersName, MGetBlobArraySize(pBlobMembersName)), MCmdParamUInt(nAntiLead) ); MEraseBlobArray(pBlobMembersName); } inline void ZPostLadderCancel() { ZPOSTCMD0(MC_MATCH_LADDER_REQUEST_CANCEL_CHALLENGE) }
void ChatCmd_LadderTest(const char* line,const int argc, char **const argv)
{
// »ç¿ëÇÏ´Â ºÎºÐÀÌ ¾ø¾î¼ µð¹ö±×¿ëÀ¸·Î ¼öÁ¤ÇÔ. -by SungE 2007-04-02
#ifdef _DEBUG
if (argc == 1)
{
char szPlayerName[MATCHOBJECT_NAME_LENGTH];
strcpy(szPlayerName, ZGetMyInfo()->GetCharName());
char* pName[1];
pName[0] = szPlayerName;
ZPostLadderRequestChallenge(pName, 1, 0,0);
} else if (argc == 2)
{
char szPlayerName[MATCHOBJECT_NAME_LENGTH], szTeamMember1[MATCHOBJECT_NAME_LENGTH];
strcpy(szPlayerName, ZGetMyInfo()->GetCharName());
strcpy(szTeamMember1, argv[1]);
char*pName[2];
pName[0] = szPlayerName;
pName[1] = szTeamMember1;
ZPostLadderRequestChallenge(pName, 2, 0,0);
}
#endif
}
well, your ZPostLadderRequestChallenge takes 4 arguments and not 3.. you did ZPostLadderRequestChallenge(1,2,3) with 3 arguments and you need 4
inline void ZPostLadderRequestChallenge(char** ppMemberCharNames, const int nMemberCount, unsigned long int nOptions, unsigned long int nAntiLead)
anyways:
LINK : fatal error LNK1104: cannot open file 'CSCommonE.lib'
That's great, thank you. I now have another error:
I've tried linking to CSCommon/Lib by going to GunZ Properties > Linker > Additional Library Directories - but this doesn't seem to work.
Hey,
No I haven't resolved this, I kinda gave up on it lol. All I want it for is so I can create my own Login.mrs :/
I just want to debug. I have no idea what I'm doing. I changed the build config to debug and fixed all the errors except this one. Am I on the right path for debugging or am I way off?
Is there a reason why you want to debug? The only reason why I'm doing it is because from what I can tell the debug runnable shows coordinates for where you are standing which can then be used to make your own Login map (because the old developer runnable used for the old files doesn't work with 1.5 files).
The CSCommon debug binary named CSCommonDE.lib by default as far as I recall, so sounds like you have something linking to the wrong thing. Does Gunz's main.h link to CSCommonE.lib in the _DEBUG branch? You should change that to CSCommonDE.lib if so (or whatever the output name is, you should be able to check in Properties -> Librarian).