The following warnings occurred:
Warning [2] Undefined array key 0 - Line: 1677 - File: showthread.php PHP 8.3.36 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/showthread.php 1677 errorHandler->error_callback
/showthread.php 916 buildtree




SVN Builds
#23
Hey,

Client still crashes doesnt seem to be anything in my code so far i can see.

Code:
void cChicken::KilledBy( cEntity* a_Killer ) { //1 raw chicken cPickup* pRawChicken = new cPickup( (int)(m_Pos->x*32), (int)(m_Pos->y*32), (int)(m_Pos->z*32), cItem( E_ITEM_RAW_CHICKEN, 1 ) ); pRawChicken->Initialize( GetWorld() ); //0 to 2 feather. int rFeather = rand() % 3; if (rFeather != 0) { cPickup* pFeather = new cPickup( (int)(m_Pos->x*32), (int)(m_Pos->y*32), (int)(m_Pos->z*32), cItem( E_ITEM_FEATHER, rFeather ) ); pFeather->Initialize( GetWorld() ); } cMonster::KilledBy( a_Killer ); }
Reply
Thanks given by:


Messages In This Thread



Users browsing this thread: 1 Guest(s)