Ramuud Posted January 11, 2018 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 11 Reputation: 0 Joined: 06/27/17 Last Seen: June 10, 2022 Share Posted January 11, 2018 Hi i'm trying to get 10% of my variable value but my emulator keeps getting error.. i was trying this: .@str2 = (((.@str*10)/100) + .@str); but it still getting me error, can anyone help ? Quote Link to comment Share on other sites More sharing options...
0 pajodex Posted January 11, 2018 Group: Members Topic Count: 79 Topics Per Day: 0.03 Content Count: 439 Reputation: 173 Joined: 12/12/17 Last Seen: April 14 Share Posted January 11, 2018 (edited) .@str2 = ( (( .@str * (10/100)) + .@str ); To get 10% from str var? Edited January 11, 2018 by pajodex Quote Link to comment Share on other sites More sharing options...
0 Emistry Posted January 11, 2018 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted January 11, 2018 .@str = ((readparam(bStr) * 110) / 100); // STR 110% Quote Link to comment Share on other sites More sharing options...
0 Ramuud Posted January 11, 2018 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 11 Reputation: 0 Joined: 06/27/17 Last Seen: June 10, 2022 Author Share Posted January 11, 2018 (edited) This may be right but is for homunculus that i want @str refers to an SQL value that store my homunculus str point. I want To increase it 10% Edited January 11, 2018 by Ramuud Quote Link to comment Share on other sites More sharing options...
Question
Ramuud
Hi i'm trying to get 10% of my variable value but my emulator keeps getting error.. i was trying this:
.@str2 = (((.@str*10)/100) + .@str);
but it still getting me error, can anyone help ?
Link to comment
Share on other sites
3 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.