View Single Post
  #13  
Old 01-27-2003, 02:10 PM
Edgar1898
Senior Member
Former EQEmu Developer
Current EQ2Emu Lead Developer
 
Join Date: Dec 2002
Posts: 1,065
Default

I know what I did. It was getting hung up on checking to see if the input was a number, so I just removed the check:
Code:
else if (strstr(command,"CHANGEFACTION") != NULL) {
				this->CastToClient()->SetFactionLevel2(this->CastToClient()->CharacterID(),atoi(sep.arg[1]), this->CastToClient()->GetClass(), this->CastToClient()->GetRace(), this->CastToClient()->GetDeity(), atoi(sep.arg[2]));
				this->CastToClient()->Message(0,BuildFactionMessage(GetCharacterFactionLevel(atoi(sep.arg[1])),atoi(sep.arg[1]),atoi(sep.arg[2])));
			ps = true;
		}
It works fine now...
__________________
Lethal Encounter
Reply With Quote