Hello every one, i have some problem, i dont know how to make ''Scroll bar in CH Officer'' some one can helm my? Please help my.
Scroll bar its it:
<a href='http://imageshack.us' target='_blank'></a>
Scroll bar
Code: Select all
iTotalLines = 0;
for (i = 0; i < DEF_MAXMENUITEMS; i++)
if (m_pItemForSaleList[i] != NULL) iTotalLines++;
// ½ºÅ©·Ñ ¹Ù Æ÷ÀÎÅÍ ±×¸°´Ù.
if (iTotalLines > 13) {
d1 = (double)m_stDialogBoxInfo[11].sView;
d2 = (double)(iTotalLines-13);
d3 = (274.0f * d1)/d2;
iPointerLoc = (int)(d3);
DrawNewDialogBox(DEF_SPRID_INTERFACE_ND_GAME2, sX, sY, 3);
DrawNewDialogBox(DEF_SPRID_INTERFACE_ND_GAME2, sX+242, sY + iPointerLoc + 35, 7);
}
else iPointerLoc = 0;
// ½ºÅ©·Ñ¹Ù Âï±â ó¸®
if (cLB != 0 && iTotalLines > 13) {
if ((iGetTopDialogBoxIndex() == 11)) {
if ((msX >= sX + 235) && (msX <= sX + 260) && (msY >= sY + 10) && (msY <= sY + 330)) {
d1 = (double)(msY -(sY+35));
d2 = (double)(iTotalLines-13);
d3 = (d1 * d2)/274.0f;
m_stDialogBoxInfo[11].sView = (int)(d3+0.5);
}
}
}
else m_stDialogBoxInfo[11].bIsScrollSelected = FALSE;
if( iGetTopDialogBoxIndex() == 11 && msZ != 0 )
{
m_stDialogBoxInfo[11].sView = m_stDialogBoxInfo[11].sView - msZ/60;
m_DInput.m_sZ = 0;
}
if( iTotalLines > 13 && m_stDialogBoxInfo[11].sView > iTotalLines-13 ) m_stDialogBoxInfo[11].sView = iTotalLines-13;
if( m_stDialogBoxInfo[11].sView < 0 || iTotalLines < 13 ) m_stDialogBoxInfo[11].sView = 0;
<img src='http://www.helbreathx.net/sig/sig.jpeg' border='0' alt='user posted image' /><br><a href='http://mafia.cheats4us.org/index.php?x=231030' target='_blank'>#1 on Mafia </a><br><!--QuoteBegin-Slipknight+--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Slipknight)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->100mb Internet, burstable too 10GB oc192<br>his speed can go up too 10gbs<br>...<br>Yes my car can have a top speed of 1000mph<!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd--><br>^^ I wonder where the retard went to.