<!--quoteo(post=167768:date=Oct 16 2006, 06:56 AM:name=dengo)--><div class='quotetop'>QUOTE(dengo @ Oct 16 2006, 06:56 AM) [snapback]167768[/snapback]</div><div class='quotemain'><!--quotec-->
hi,
sorry, for the late reply...
i'm not playing the game right now and don't have the time to mod.
it seems you are really new to C:
if (characters[iChar].model == "officer_4" == "officer_6" == "officer_10");
{
....
is wrong.
2 errors:
1. the ; doesn't belong there.
2. the boolean expression is faulty.
it should be something like:
if (characters[iChar].model == "officer_4" || characters[iChar].model == "officer_6" || characters[iChar].model == "officer_10")
{
....
i hope that helps.
i wish u luck...
<!--QuoteEnd--></div><!--QuoteEEnd-->
Thanks for the hint! I recently discovered that error as well seeing how it was done somewhere else (Still learning). I will try it and see if it makes any difference but I think the issue lies with this bit:
characters[ichar].model.animation = "woman";
characters[ichar].sex = "woman";
SetRandomNameToCharacter(&characters[ichar]);
since iChar is already defined by :
int iChar = GenerateCharacter(iNation, WITHOUT_SHIP, "pofficer", MAN, 1, OFFICER);
If I remove the man part, for some reason the nations are no longer correct.
I played with replicating the whole code and making new code with iGirl instead of iChar to make female officers but I could figure out how to tell the computer to pick from both sets of code.
I'll the code fix but tell me if any of other assumptions here seem flawed.
UPDATE: