I have @@totaltime set to 00:00:40, a sum coming our of a time field in MYSQL.


I have @@totalPlayerTime set to 00:00:20

I want to <@CALC "@@totalplayertime / @@totaltime"> to get a percentage.

I can't seem to make that work.

I have tried timetosecs and that doesn't work either.

<@CALC '<@timetosecs time="@@totalplayertime"> / <@timetosecs 
time="@@totaltime">'>

And that doesn't work either.

I guess I need to find a way to convert the time to a number in both cases and 
divide to get a percentage and the convert it back to time.

Can someone help me clean that up?

Thanks

Mark


 NOTICE: This email message is for the sole use of the intended recipient(s) 
and may contain confidential and privileged information. Any unauthorized 
review, use, disclosure or distribution is prohibited. If you are not the 
intended recipient, please contact the sender by reply email and destroy all 
copies of the original message.




----------------------------------------

To unsubscribe from this list, please send an email to [email protected] 
with "unsubscribe terascript-talk" in the body.

Reply via email to