26.09.2012, 15:00
Hey.
I have a simple problem with my maths.
So, i want to "convert" my vehicle-tank.
(example: 30 liter = 100%)
but i get a little problem.
i dont know how, because i have'nt gone to school since May because i'm ill.
I know how to get "1%" of my vehicle-tank but i dont know how to make it dynamic.
can u give me tips or something like that??
this is currently my script:
Thx...
PS: btank is only a variable for little time until i have my calculation.
PSІ: Sorry for my english... I'm tired ... ^^
I have a simple problem with my maths.
So, i want to "convert" my vehicle-tank.
(example: 30 liter = 100%)
but i get a little problem.
i dont know how, because i have'nt gone to school since May because i'm ill.
I know how to get "1%" of my vehicle-tank but i dont know how to make it dynamic.
can u give me tips or something like that??
this is currently my script:
pawn Код:
stock GetConvertedTank(vehicleid)
{
new btank = 30;
new tempTank;
tempTank = floatround(bTank / 100);
return 1;
}
PS: btank is only a variable for little time until i have my calculation.
PSІ: Sorry for my english... I'm tired ... ^^