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
Exp_GetVal: Divide by 0
Author Message
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #3
RE: Exp_GetVal: Divide by 0
Your problem here is dtag0.
tag0 is to see if the tag is there.
dtag gives you the integer value of a tag
dtag0 will force an integer even if there is no tag, which causes the error because the result of the equation is too small

If there's is the possibility of that tag not existing use eval or put it inside an if statement to check it exists before running the line containing the qval.

Code:
IF <SRC.ISPLAYER>
SRC.SYSMESSAGE @0487 <SRC.DTAG0.BONUSRESISTANCE_PARALYZE>% <QVAL (<EVAL <SRC.ACCOUNT.TAG0.LANGUAGE>==1>) ? resistance to Paralyze:сопротивления к магии Paralyze>.
ENDIF

[Image: 2nis46r.jpg]
(This post was last modified: 12-31-2012 01:41 AM by Mordaunt.)
12-31-2012 01:28 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Exp_GetVal: Divide by 0 - Russian - 12-30-2012, 11:50 PM
RE: Exp_GetVal: Divide by 0 - Shaklaban - 12-31-2012, 12:58 AM
RE: Exp_GetVal: Divide by 0 - Mordaunt - 12-31-2012 01:28 AM
RE: Exp_GetVal: Divide by 0 - Ben - 12-31-2012, 05:24 AM
RE: Exp_GetVal: Divide by 0 - Mordaunt - 12-31-2012, 05:49 AM
RE: Exp_GetVal: Divide by 0 - Shaklaban - 12-31-2012, 08:18 AM
RE: Exp_GetVal: Divide by 0 - Mordaunt - 12-31-2012, 08:40 AM

Forum Jump:


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