View Full Version : [SOLVED] Need some more help

08-13-2013, 09:38 AM
Hello again.After I have started working on this script I have been working on. I've learned somethings about c++.I have cleared almost all of the remaining errors but I have some hard ones I can not get solved.The errors are here http://pastebin.com/RCgTAAy9

Here is the script http://pastebin.com/BFDAAETq

Sorry for those errors! I have tried to limit it down as far as I can go but I seem to be stuck at this point. I'm a noob at c++ so I'm just getting the hang of the ropes :P

Thanks again to this epic community for helping me and the great people.I will be sure soon to find something worthy to be released.Thank you :)

08-13-2013, 06:28 PM
On line 476 there is no such identifier named "CHAR_DEL_CREATURE_RESPAWN_BY_GUID", unless it is custom of course..

The only ones I see are:


On line 560, you're missing the increment for "itr": (In Red)


for (PlayerSet::iterator itr = m_players[TEAM_HORDE].begin(); itr != m_players[TEAM_HORDE].end(); itr++)

On line 588, you're missing the increment as well.


for (CreatureSet::iterator itr = m_creature.begin(); itr != m_creature.end(); itr++)

On line 591, you're missing the increment.


for (CreatureSet::iterator itr = m_creature.begin(); itr != m_creature.end(); itr++)

Just to save time on the others, check all of your for loops because you're not incrementing any variables.. :/

If you get more errors afterwards, I'm still here to help. \o/

08-13-2013, 06:59 PM
Thanks so much tommy!.I added the ++ to the itr on the end of those lines but im still getting the same ammount of errors :/.Thanks so much for your help!

08-13-2013, 07:14 PM
Same thing on lines 576 and 587

Then on lines 582 and 593 you have

if((*itr)->GetEntry() == CA_NPC[(i1)].entry)

i1 is not a variable (I'd assume it's supposed to be just i

08-13-2013, 08:51 PM
Thanks parranoia!. I was thinking about removing the 1 but I wasn't sure. I'm stuck with these left.The ones that are screwing me up are the cant convert on the cast spell function.The rest of my errors are here.Thank you so much guys. Also I think I may have one or more error that wasn't hard.If there is I will try to fix it on my own :).Thanks again

08-13-2013, 09:01 PM
You're welcome. :D