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 System - Doesn't work from 0.56b to 0.56d
Author Message
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #6
RE: Exp System - Doesn't work from 0.56b to 0.56d
The best way to find any error on any code is debugging it. You just need to insert a random message/log on the code to check if the line is being reached, check if an trigger/function is being called, check an tag value, formula result, etc

So to check if the trigger @DeathCorpse is being called you just need to do something like this
Code:
ON=@DeathCorpse
SERV.LOG trigger @deathcorpse called
This will thrown an debug message on console, so if it show the message = trigger called, otherwise no message = trigger not called

The same can be used to check what is this "undefined symbol" on line 9. Symbol is not only characters like &&, but everything that can make sphere read the line incorrectly
Eg: if you write "IF (<something> > 5)" where <something> is a null value, sphere will read this line as "IF ( > 5)" and will throw "undefined symbol" error because it doesn't know what means <something>

Since this line 9 only use REF1 and DEF.LevelCap, probably this should be an empty REF1 or empty DEF.LevelCap. Again, to check what's wrong you just need to debug it
Code:
ON=@DeathCorpse
REF1=<ARGO.MORE2>
SERV.LOG the REF1 value is "<REF1>" (<REF1.NAME>) and DEF.LevelCap value is "<DEF.LevelCap>"
09-11-2019 10:39 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Exp System - Doesn't work from 0.56b to 0.56d - Coruja - 09-11-2019 10:39 AM

Forum Jump:


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