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
Got a Problem
Author Message
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #4
RE: Got a Problem
Your gold functions are like 15 years old and some less obsolete, they worked perfectly years back but now they will force you to spend CPU on useless code, so that's what Extreme's post was about, GOLD function does almost whatever you want in gold related terms.

But the problem you have there is that you are not using those functions, you have them scripted but if you don't tell Sphere to use them on your dialog... they will not work. eg:

Code:
on=17
IF <EVAL <SRC.TAG.PTSSKILLS>> > 0
SRC.TAG.PTSSKILLS=<EVAL <SRC.TAG.PTSSKILLS> - 1>
SRC.debogage
SRC.EvaluatingIntel=<EVAL <SRC.EvaluatingIntel>+10>
SRC.TAG.EvaluatingIntelPURE=<EVAL <SRC.EvaluatingIntel>/10>
SRC.GESTION
SRC.GOLD -= 5000 // This will substract 5.000gp from your funds, using GOLD += 5000 will add 5.000gp and GOLD = 5000 will set your total funds to 5.000gp
ENDIF
ENDIF // <--- you have 2 ENDIF in each button code and you only have one IF, it's not a problem IN THIS CASE but it's redundant and bad practice in case you add more code and it gets broken because of this.
(This post was last modified: 05-02-2016 06:59 PM by XuN.)
05-02-2016 06:58 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Got a Problem - Thysis - 04-28-2016, 09:30 AM
RE: Got a Problem - Extreme - 04-29-2016, 03:07 AM
RE: Got a Problem - Thysis - 05-02-2016, 10:20 AM
RE: Got a Problem - XuN - 05-02-2016 06:58 PM
RE: Got a Problem - Thysis - 05-05-2016, 11:18 AM

Forum Jump:


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