• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

[SOLVED] Need some more help

Status
Not open for further replies.

brh11

Respected Member
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 :)
 

Tommy

Founder
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:

Code:
    CHAR_DEL_CREATURE_RESPAWN,
    CHAR_DEL_CREATURE_RESPAWN_BY_INSTANCE,


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

Correction:
Code:
for (PlayerSet::iterator itr = m_players[TEAM_HORDE].begin(); itr != m_players[TEAM_HORDE].end(); [COLOR=#00ff00]itr++[/COLOR])

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

Correction:
Code:
for (CreatureSet::iterator itr = m_creature.begin(); itr != m_creature.end(); [COLOR=#00ff00]itr++[/COLOR])

On line 591, you're missing the increment.

CORRECTION:

Code:
for (CreatureSet::iterator itr = m_creature.begin(); itr != m_creature.end(); [COLOR=#00ff00]itr++[/COLOR])


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/
 

brh11

Respected Member
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!
 

Parranoia

Insane Member
Same thing on lines 576 and 587

Then on lines 582 and 593 you have
Code:
if((*itr)->GetEntry() == CA_NPC[([COLOR="#FF0000"]i1[/COLOR])].entry)

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

brh11

Respected Member
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
 
Status
Not open for further replies.
Top