The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Kill to Death Ratio in a DIALOG
Author Message
x77x
Master
**

Posts: 488
Likes Given: 0
Likes Received: 15 in 15 posts
Joined: Mar 2012
Reputation: -4



Post: #1
Kill to Death Ratio in a DIALOG
in a dialog, i have kills and deaths stored on a guildstone


Code:
Kills: <eval <uid.040004000.morex>> - Deaths: <eval <uid.040004000.morey>>- Ratio: (<eval (<uid.040004000.morex>/<uid.040004000.morey>))//wei

ratio = morex divided by morey please

how do i calculate math?

Dragons of Time 2000-2020
http://dragonsoftime.com
(This post was last modified: 01-07-2015 07:22 AM by x77x.)
01-07-2015 07:20 AM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #2
RE: Kill to Death Ratio in a DIALOG
Kills: <eval <uid.040004000.morex>> - Deaths: <eval <uid.040004000.morey>>- Ratio: (<eval (<uid.040004000.morex>/<uid.040004000.morey>)>)//wei

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
01-07-2015 08:22 AM
Find all posts by this user Like Post Quote this message in a reply
x77x
Master
**

Posts: 488
Likes Given: 0
Likes Received: 15 in 15 posts
Joined: Mar 2012
Reputation: -4



Post: #3
RE: Kill to Death Ratio in a DIALOG
Code:
Kills: <eval <uid.040004000.morex>> - Deaths: <eval <uid.040004000.morey>> - Ratio: <eval (<uid.040004000.morex> / <uid.040004000.morey>)>


any way to get this to display in fractions?

Ratio: 1.09
Ratio: 0.76

ect...

Dragons of Time 2000-2020
http://dragonsoftime.com
(This post was last modified: 01-07-2015 09:04 AM by x77x.)
01-07-2015 08:55 AM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #4
RE: Kill to Death Ratio in a DIALOG
Try fval instead eval.

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
01-07-2015 10:04 AM
Find all posts by this user Like Post Quote this message in a reply
x77x
Master
**

Posts: 488
Likes Given: 0
Likes Received: 15 in 15 posts
Joined: Mar 2012
Reputation: -4



Post: #5
RE: Kill to Death Ratio in a DIALOG
its in 10ths...

so i tricked it


Code:
Kills: <eval <uid.040004000.morex>> - Deaths: <eval <uid.040004000.morey>> - Ratio: <fval (<uid.040004000.morex> / <uid.040004000.morey>) * 10))>


thank you! =)

Dragons of Time 2000-2020
http://dragonsoftime.com
(This post was last modified: 01-07-2015 02:49 PM by x77x.)
01-07-2015 02:44 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)