Failed Calculation.. -_-
#1

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:
pawn Код:
stock GetConvertedTank(vehicleid)
{
    new btank = 30;
    new tempTank;
    tempTank = floatround(bTank / 100);
    return 1;
}
Thx...

PS: btank is only a variable for little time until i have my calculation.
PSІ: Sorry for my english... I'm tired ... ^^
Reply


Messages In This Thread
Failed Calculation.. -_- - by 'Pawno. - 26.09.2012, 15:00
Re: Failed Calculation.. -_- - by [MM]RoXoR[FS] - 26.09.2012, 15:20
AW: Failed Calculation.. -_- - by 'Pawno. - 26.09.2012, 15:23
Re: Failed Calculation.. -_- - by [MM]RoXoR[FS] - 26.09.2012, 15:31
AW: Failed Calculation.. -_- - by 'Pawno. - 26.09.2012, 15:40
Re: Failed Calculation.. -_- - by mamorunl - 26.09.2012, 15:41
AW: Re: Failed Calculation.. -_- - by 'Pawno. - 26.09.2012, 15:58
Re: Failed Calculation.. -_- - by mamorunl - 26.09.2012, 16:17
AW: Failed Calculation.. -_- - by 'Pawno. - 26.09.2012, 16:51

Forum Jump:


Users browsing this thread: 5 Guest(s)