zsnyder23 Posted November 25, 2009 Report Share Posted November 25, 2009 I have edited the LAChase command so its like Shanes but with more reasons people got pulled over. } int Money = Mission::GetMoneyLeft(); int Fine; int Chance = Math::rand() % 4; if (Chance == 0) { Fine = 800; Mission::PlayHint("Driver fined for speeding. You've earned 800 credits!"); } else if (Chance == 1) { Fine = 300; Mission::PlayHint("Driver fined for expired registration sticker. You've earned 300 credits!"); } else if (Chance == 2) { Fine = 200; Mission::PlayHint("Driver fined for a missing tail light. You've earned 200 credits!"); } else if (Chance == 3) { Fine = 600; Mission::PlayHint("Driver fined for failure to use a seatbelt. You've earned 600 credits!"); } else if (Chance == 3) { Fine = 300; Mission::PlayHint("Driver fined for missing head light. You've earned 300 credits!"); } else if (Chance == 3) { Fine = 250; Mission::PlayHint("Driver fined for missing inspection skicker. You've earned 250 credits!"); } else if (Chance == 3) { Fine = 1000; Mission::PlayHint("Driver fined for failure to use a car seat. You've earned 1000 credits!"); } else if (Chance == 3) { Fine = 750; Mission::PlayHint("Driver fined for littering. You've earned 750 credits!"); } int NewMoney = Money + Fine; Mission::SetMoney(NewMoney); } }};But when I play the game I still only get 300 and its just for speeding is there something else I need to chage? Link to comment Share on other sites More sharing options...
Hoppah Posted November 25, 2009 Report Share Posted November 25, 2009 You just copied the parts and changed the text? That's not how scripting works. You need to define the amount of fines. There were 4, now there are 8. Look closely to the changed parts: } int Money = Mission::GetMoneyLeft(); int Fine; int Chance = Math::rand() % 8; if (Chance == 0) { Fine = 800; Mission::PlayHint("Driver fined for speeding. You've earned 800 credits!"); } else if (Chance == 1) { Fine = 300; Mission::PlayHint("Driver fined for expired registration sticker. You've earned 300 credits!"); } else if (Chance == 2) { Fine = 200; Mission::PlayHint("Driver fined for a missing tail light. You've earned 200 credits!"); } else if (Chance == 3) { Fine = 600; Mission::PlayHint("Driver fined for failure to use a seatbelt. You've earned 600 credits!"); } else if (Chance == 4) { Fine = 300; Mission::PlayHint("Driver fined for missing head light. You've earned 300 credits!"); } else if (Chance == 5) { Fine = 250; Mission::PlayHint("Driver fined for missing inspection skicker. You've earned 250 credits!"); } else if (Chance == 6) { Fine = 1000; Mission::PlayHint("Driver fined for failure to use a car seat. You've earned 1000 credits!"); } else if (Chance == 7) { Fine = 750; Mission::PlayHint("Driver fined for littering. You've earned 750 credits!"); } int NewMoney = Money + Fine; Mission::SetMoney(NewMoney); } }}; Link to comment Share on other sites More sharing options...
Forensics Posted November 25, 2009 Report Share Posted November 25, 2009 LOL, how is it possible to drive and not use a car seat '"Driver fined for failure to use a car seat'' Does the driver sit on the floor or something?Or does it mean failure to use a car seat properly? Link to comment Share on other sites More sharing options...
TIGifts Posted November 25, 2009 Report Share Posted November 25, 2009 LOL, how is it possible to drive and not use a car seat '"Driver fined for failure to use a car seat'' Does the driver sit on the floor or something?Or does it mean failure to use a car seat properly?A car seat is a seat that a child sits in.(USA) A lot of people do not use this and child get hurt every year. Link to comment Share on other sites More sharing options...
Forensics Posted November 25, 2009 Report Share Posted November 25, 2009 A car seat is a seat that a child sits in.(USA) A lot of people do not use this and child get hurt every year.Oh see i call those ones child car seats and normal ones just car seats. Link to comment Share on other sites More sharing options...
Hoppah Posted November 25, 2009 Report Share Posted November 25, 2009 Oh see i call those ones child car seats and normal ones just car seats.Yeah, the ones you sit in! Link to comment Share on other sites More sharing options...