Vincent Posted June 7, 2013 Group: Members Topic Count: 130 Topics Per Day: 0.03 Content Count: 528 Reputation: 18 Joined: 09/11/12 Last Seen: March 5, 2020 Share Posted June 7, 2013 Hi, How can I multiply a variable with a number? Dont work: .@amount2 = .@amount * 0,1; Quote Link to comment Share on other sites More sharing options...
Emistry Posted June 7, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: 10 hours ago Share Posted June 7, 2013 eathena / rathena doesnt support decimal value ... but you can do it like this .@amount2 = (( .@amount * 10 ) / 100 ); .@amount2 = ( .@amount / 10 ); 1 Quote Link to comment Share on other sites More sharing options...
Vincent Posted June 7, 2013 Group: Members Topic Count: 130 Topics Per Day: 0.03 Content Count: 528 Reputation: 18 Joined: 09/11/12 Last Seen: March 5, 2020 Author Share Posted June 7, 2013 Thanks Quote Link to comment Share on other sites More sharing options...
Question
Vincent
Hi,
How can I multiply a variable with a number?
Dont work:
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.