como obter números inteiros na minha operação?

BennyDz
em Scripts

BennyDz

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 15/06/13Posts: 6Char no Tibia: Dem Shion

Portugues:

como obter números inteiros na minha operação?

 

na minha consola de jogos

17:51 VIP OUTFIT TIME: 58.251388888889 Hours.

 

script:

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "VIP OUTFIT TIME: " ..(exhaustion.get(cid, storage) / (3600)).." Hours. ")

 

Eu quero mostrar como:

17:51 VIP OUTFIT TIME: 58 Hours.

 

 

 

 

English:

how obtain integers numbers in my operation?

 

on console:

 

17:51 VIP OUTFIT TIME: 58.251388888889 Hours.

 

script:

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "VIP OUTFIT TIME: " ..(exhaustion.get(cid, storage) / (3600)).." Hours. ")

 

i want show just like that

17:51 VIP OUTFIT TIME: 58 Hours.

Slicer

Insanity
avatar
Príncipe
Príncipe

INFOS

Grupo: PríncipeRegistrado: 19/08/10Posts: 4014Gênero: Masculino
math.floor(exhaustion.get(cid, storage) / (3600))

"Só a beira do abismo que os seres humanos acham forças para mudar."... E isso me da nojo... ¬¬

"Insanity is doing the exact... same fucking thing... over and over again expecting... shit to change... That. Is. Crazy." -Vass/Einstein

 

BennyDz

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 15/06/13Posts: 6Char no Tibia: Dem Shion

obrigado +rep