Newbie Spellweaver
- Joined
- Apr 9, 2015
- Messages
- 50
- Reaction score
- 4
Hi Ragezone,
im using IA Julia 4.6 files and i need help with the Offtrade command.
( http://forum.ragezone.com/f197/release-files-season-4-6-a-1094452/ )
the problem is when i use offtrade and try to connect to my account it says that
"the account is already connected" would love some help from one of you to fix the problem
(already searched ragezone for the answer but found nothing, there was one guy who solved it but he was online 3 months ago..)
Code :
im using IA Julia 4.6 files and i need help with the Offtrade command.
( http://forum.ragezone.com/f197/release-files-season-4-6-a-1094452/ )
the problem is when i use offtrade and try to connect to my account it says that
"the account is already connected" would love some help from one of you to fix the problem
(already searched ragezone for the answer but found nothing, there was one guy who solved it but he was online 3 months ago..)
Code :
void cOffProtocol::ICSPJoinIdPassRequest(LPBYTE aRecv,int aIndex)
{
char id[11];
int isOff = 0;
PMSG_IDPASS *lpMsg = (PMSG_IDPASS *)aRecv;
OBJECTSTRUCT *gObjt = (OBJECTSTRUCT*)OBJECT_POINTER(aIndex);
id[10] = 0;
memcpy(id, lpMsg->Id, sizeof(lpMsg->Id));
BuxConvert(id, MAX_ACCOUNT_LEN);
for(int i=8000; i<9000; i++)
{
OBJECTSTRUCT *gObj = (OBJECTSTRUCT*)OBJECT_POINTER(i);
if(gObj->Connected == 3 && AddTab.OfflineTrade == true)
{
//gObj_GetLogin(aIndex,Login);
if(!strcmp(gObj->AccountID, gObjt->AccountID))
{
AddTab.OfflineTrade = false;
CloseClient(i);
gObjDel(i);
isOff = 1;
//this not tested
AddTab[aIndex].aRecv = aRecv;
AddTab[aIndex].OfflineTrade = false;
break;
}
}
}
if(isOff)
{
_beginthread( cOffProtocol::Login_Timer, 0, (void*)aIndex );
}
else
{
CSPJoinIdPassRequest(lpMsg,aIndex);
}
}