
im not sure if this is where i should post this but i dont know if i code this or something else...
Code: Select all
case 12:
if ((msX >= sX + DEF_LBTNPOSX) && (msX <= sX + DEF_LBTNPOSX + DEF_BTNSZX) && (msY >= sY + DEF_BTNPOSY) && (msY <= sY + DEF_BTNPOSY + DEF_BTNSZY))
{ bSendCommand(MSGID_COMMAND_COMMON, DEF_COMMONTYPE_REQ_GETHEROITEM, NULL, m_stDialogBoxInfo[13].sV1, NULL, NULL, NULL);
m_stDialogBoxInfo[13].cMode = 0;
PlaySound('E', 14, 5);
}
if ((msX >= sX + DEF_RBTNPOSX) && (msX <= sX + DEF_RBTNPOSX + DEF_BTNSZX) && (msY >= sY + DEF_BTNPOSY) && (msY <= sY + DEF_BTNPOSY + DEF_BTNSZY))
{ m_stDialogBoxInfo[13].cMode = 12;
PlaySound('E', 14, 5);
}
break;
Code: Select all
--------------------Configuration: Game - Win32 Release--------------------
Compiling...
Game.cpp
D:\Clients\Game.cpp(19886) : error C2059: syntax error : 'bad suffix on number'
D:\Clients\Game.cpp(19886) : error C2146: syntax error : missing ')' before identifier 'G'
D:\Clients\Game.cpp(19886) : error C2660: 'bSendCommand' : function does not take 2 parameters
D:\Clients\Game.cpp(19886) : error C2059: syntax error : ')'
Error executing cl.exe.
Client.exe - 4 error(s), 0 warning(s)
<span style='color:red'>19890 line's error:</span>--------------------Configuration: Game - Win32 Release--------------------
Compiling...
MapData.cpp
Game.cpp
<span style='color:red'>D:\Server\Game.cpp(19890) : error C2065: 'm_cTakeItemName' : undeclared identifier</span>
<span style='color:purple'>D:\Server\Game.cpp(19972) : error C2059: syntax error : 'bad suffix on number'
D:\Server\Game.cpp(19972) : error C2146: syntax error : missing ')' before identifier 'G'
D:\Server\Game.cpp(19972) : error C2660: 'bSendCommand' : function does not take 2 parameters
D:\Server\Game.cpp(19972) : error C2059: syntax error : ')'</span>
<span style='color:green'>D:\Server\Game.cpp(32842) : error C2065: 'DRAW_DIALOGBOX_CITYHALL_MENU46B' : undeclared </span>identifier
Wmain.cpp
Error executing cl.exe.
Client.exe - 6 error(s), 0 warning(s)
<span style='color:purple'>19972 line's errors (4x):</span>case 12: //MERIEN HERO TRADE POR Blizaga
int iReqItemID;
// MERIEN HERO CAPE
if ((msX >= sX + 35) && (msX <= sX + 220) && (msY >= sY + 95) && (msY <= sY + 110))
{ if(m_bAresden == TRUE) iReqItemID = 955;
else iReqItemID = 955;
<span style='color:red'>ZeroMemory(m_cTakeItemName,sizeof(m_cTakeItemName));</span>
memcpy(m_cTakeItemName,DRAW_DIALOGBOX_CITYHALL_MENU78,strlen(DRAW_DIALOGBOX_CITYHALL_MENU78));
m_stDialogBoxInfo[13].cMode = 13;
m_stDialogBoxInfo[13].sV1=iReqItemID;
PlaySound('E', 14, 5);
}
<span style='color:green'>32842 line's error:</span>case 13: // MERIEN TRADE YES BY BLIZ FIXED ORIGINAL BY DRAJWER
if ((msX >= sX + DEF_LBTNPOSX) && (msX <= sX + DEF_LBTNPOSX + DEF_BTNSZX) && (msY >= sY + DEF_BTNPOSY) && (msY <= sY + DEF_BTNPOSY + DEF_BTNSZY))
<span style='color:purple'>{ bSendCommand(MSGID_COMMAND_COMMON, DEF_COMMONTYPE_REQ_GETMERIENHEROMANTLE, NULL, m_stDialogBoxInfo[13].sV1, NULL, NULL, NULL);</span>
m_stDialogBoxInfo[13].cMode = 0;
PlaySound('E', 14, 5);
}
if ((msX >= sX + DEF_RBTNPOSX) && (msX <= sX + DEF_RBTNPOSX + DEF_BTNSZX) && (msY >= sY + DEF_BTNPOSY) && (msY <= sY + DEF_BTNPOSY + DEF_BTNSZY))
{ m_stDialogBoxInfo[13].cMode = 12;
PlaySound('E', 14, 5);
}
break;
case 13: //dPREGUNTAR PAEA OBTENER MERIEN HERO
PutAlignedString(sX,sX+szX-1,sY+125,m_cTakeItemName, 255,0,100);
PutAlignedString(sX+1,sX+szX,sY+125,m_cTakeItemName, 255,0,100);
<span style='color:green'> PutAlignedString(sX,sX+szX,sY+260,DRAW_DIALOGBOX_CITYHALL_MENU46B, 55,25,25); // would you like..</span>
if ( (msX >= sX + DEF_LBTNPOSX) && (msX <= sX + DEF_LBTNPOSX + DEF_BTNSZX)
&& (msY >= sY + DEF_BTNPOSY) && (msY <= sY + DEF_BTNPOSY + DEF_BTNSZY))
DrawNewDialogBox(DEF_SPRID_INTERFACE_ND_BUTTON, sX + DEF_LBTNPOSX, sY + DEF_BTNPOSY, 19);
else DrawNewDialogBox(DEF_SPRID_INTERFACE_ND_BUTTON, sX + DEF_LBTNPOSX, sY + DEF_BTNPOSY, 18);
if ( (msX >= sX + DEF_RBTNPOSX) && (msX <= sX + DEF_RBTNPOSX + DEF_BTNSZX)
&& (msY >= sY + DEF_BTNPOSY) && (msY <= sY + DEF_BTNPOSY + DEF_BTNSZY))
DrawNewDialogBox(DEF_SPRID_INTERFACE_ND_BUTTON, sX + DEF_RBTNPOSX, sY + DEF_BTNPOSY, 3);
else DrawNewDialogBox(DEF_SPRID_INTERFACE_ND_BUTTON, sX + DEF_RBTNPOSX, sY + DEF_BTNPOSY, 2);
break;