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
#12
Weird..
When i do 2 times without the if 2 pickup i get a error.

Edit:
Code:
void cCavespider::KilledBy( cEntity* a_Killer ) { //0 to 1 spider eye - 1.9 pre2 cPickup* Pickup = new cPickup( (int)(m_Pos->x*32), (int)(m_Pos->y*32), (int)(m_Pos->z*32), cItem( E_ITEM_SPIDER_EYE, (rand() % 1) ) ); Pickup->Initialize( GetWorld() ); //0 to 2 string. cPickup* Pickup = new cPickup( (int)(m_Pos->x*32), (int)(m_Pos->y*32), (int)(m_Pos->z*32), cItem( E_ITEM_STRING, (rand() % 3) ) ); Pickup->Initialize( GetWorld() ); cMonster::KilledBy( a_Killer ); }
Like this i get a error also when i only do once pickup->init
Also not actually dropping the spider eye just a sample.
Reply
Thanks given by:


Messages In This Thread



Users browsing this thread: 2 Guest(s)