What's Wrong Here?

All Helbreath Server Source Discussion here.
Post Reply
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

Code: Select all

void CGame::DropItemID(int iClientH, int iItemID, int iX, int iY) { 
 class CItem * pItem;
 pItem = new class CItem;
 if (_bInitItemAttr(pItem, iItemID) == FALSE) {
   delete pItem;
   } 
   else {

     m_pMapList[ m_pClientList[iClientH]->m_cMapIndex ]->bSetItem(iX, iY, pItem);
     SendEventToNearClient_TypeB(MSGID_EVENT_COMMON, DEF_COMMONTYPE_ITEMDROP, m_pClientList[iClientH]->m_cMapIndex,iX, iY, pItem->m_sSprite, pItem->m_sSpriteFrame, pItem->m_cItemColor); // v1.4
   }

}
'DropItemID' : local function definitions are illegal
QUOTE (ADDKiD @ Dec 1 2006, 4:01 PM) <br>You guys make me laugh alot, half the shit I say, is bullshit...<br><br><img src='http://img485.imageshack.us/img485/492/banssig1ng.gif' border='0' alt='user posted image' /><br><br><b>I see no changes at all, wake up in the morning and ask myself...<br>Is life worth living? Should I blast myself?</b><br><br><b><a href='http://2paclegacy.com' target='_blank'>2PacLegacy.com</a></b>
tamir
Regular
Posts: 53
Joined: Wed Feb 04, 2004 8:42 am

Post by tamir »

is this the only definition of the function or there is a prototype?
<a href='http://tfps.fateback.com/scripts/index.html' target='_blank'>my php scripts</a>
Post Reply