```
modded class MissionGameplay extends MissionBase
{
float gettest()
{
return 0.01;
}
float getprice()
{
float price = 0;
int amount = 10;
while ( amount > 0 )
{
price += gettest();
amount--;
}
return price;
}
override void OnKeyPress(int key)
{
super.OnKeyPress(key);
if ( key == KeyCode.KC_B )
{
float price = getprice();
string txt = " price : " + price + " test 1 : " + (price - 0.1);
GetGame().GetMission().OnEvent(ChatMessageEventTypeID, new ChatMessageEventParams(CCDirect, "", txt, ""));
}
}
}
```
That's a screen to see what it's doing : {F1039820}