Author Topic: HTF - Counting the real points  (Read 913 times)

0 Members and 1 Guest are viewing this topic.

Offline dominikkk26

  • Camper
  • ***
  • Posts: 404
    • PMGsite
HTF - Counting the real points
« on: December 07, 2013, 11:09:28 am »

How do I calculate the real number of points awarded, if I have a problem?

Offline kicikici

  • Soldier
  • **
  • Posts: 180
Re: HTF - Counting the real points
« Reply #1 on: December 07, 2013, 03:58:05 pm »
KD is single or integer type? Try use conversions from this topic: http://forums.soldat.pl/index.php?topic=29911
Classic banana

Offline dominikkk26

  • Camper
  • ***
  • Posts: 404
    • PMGsite
Re: HTF - Counting the real points
« Reply #2 on: December 07, 2013, 06:55:01 pm »
When 6 player in alpha and 4 player in bravo point = 20

KD is double;
punktyd is integer;

KD := single(StrtoInt(ReadINI('soldat.ini','GAME','Red_Points_Capture','30'))) / single(AlphaPlayers / BravoPlayers);
punktyd := round(KD);
punktyd = 30
:(

Offline kicikici

  • Soldier
  • **
  • Posts: 180
Re: HTF - Counting the real points
« Reply #3 on: December 08, 2013, 10:19:55 am »
Try
Code: [Select]
KD := single(StrtoInt(ReadINI('soldat.ini','GAME','Red_Points_Capture','30'))) / (single(AlphaPlayers) / single(BravoPlayers));
Classic banana

Offline dominikkk26

  • Camper
  • ***
  • Posts: 404
    • PMGsite
Re: HTF - Counting the real points
« Reply #4 on: December 08, 2013, 04:19:48 pm »
Thanks I was beginning to doubt whether this insight possible.