Need to look into this stuff.
I got a call stack problem with creaturedrop now...apparently...
debug($drop['name']);
ths is on line 41 of creaturedrop.php and seems to be causing a call stack, listed below:
PHP Warning: "Illegal string offset 'name'"
in /home/savmor/public_html/modules/creaturedrop.php at 41.
Call Stack:
2: creaturedrop_dohook("battle-victory", Array(
"creatureid"=>"333", "creaturename"=>"Deadly Master Dragon Symp...", "creaturelevel"=>"7", "creatureweapon"=>"Razor Sharp Dagger", "creaturelose"=>"I will be avenged. You ha...", "creaturewin"=>NULL, "creaturegold"=>423, "creatureexp"=>129, "creaturehealth"=>-4, "creatureattack"=>24, "creaturedefense"=>15, "oldcreatureexp"=>NULL, "createdby"=>"DaveS", "forest"=>"1", "graveyard"=>"0", "playerstarthp"=>"169", "diddamage"=>0, "type"=>"forest", "didsurprise"=>1, "fightoutput"=>"<!-- AllowAnonymous: Fals..."
)) called from /home/savmor/public_html/lib/modules.php on line 512
3: modulehook("battle-victory", Array(
"creatureid"=>"333", "creaturename"=>"Deadly Master Dragon Symp...", "creaturelevel"=>"7", "creatureweapon"=>"Razor Sharp Dagger", "creaturelose"=>"I will be avenged. You ha...", "creaturewin"=>NULL, "creaturegold"=>423, "creatureexp"=>129, "creaturehealth"=>-4, "creatureattack"=>24, "creaturedefense"=>15, "oldcreatureexp"=>NULL, "createdby"=>"DaveS", "forest"=>"1", "graveyard"=>"0", "playerstarthp"=>"169", "diddamage"=>0, "type"=>"forest", "didsurprise"=>1, "fightoutput"=>"<!-- AllowAnonymous: Fals..."
)) called from /home/savmor/public_html/battle.php on line 277
4: require_once("/home/savmor/public_html/...") called from /home/savmor/public_html/forest.php on line 188
For now, i just commented out line 41 to see what happens, is there a known fix?
UDATE: Further investigation is telling me that the fuction s expectng an array and it is getting a strng.
Does that seem right?
If so...what code can I use above the call....too explode it into an array instead f a string?
And then, should I implode it back into a string or leave it an array?