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
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error in my insure script
Author Message
jexnico
Journeyman
*

Posts: 191
Likes Given: 114
Likes Received: 3 in 3 posts
Joined: Jan 2014
Reputation: 0



Post: #1
Error in my insure script
Someone tell me what is wrong with this script? I type the command and when I select the item to be insured of this error.
The script is used to insure an item. (Do not lose it after death)

[Image: hujfo0.png]

Quote:[DEFNAME insure_settings]
INSURANCE_PRICE 4000

[PLEVEL 1]
INSURE

[FUNCTION INSURE]
TARGETF TARGET_INSURE
SYSMESSAGE @04ec,3,1 What item would you like to insure?

[FUNCTION TARGET_INSURE]
LOCAL.TMP=<OBJ>
OBJ=<ARGO.UID>
IF (<OBJ.ATTR>&ATTR_NEWBIE)
SYSMESSAGELOC 04ec,3,1060870
ELIF (<OBJ.TOPOBJ>!=<SRC>)
SYSMESSAGELOC 04ec,3,1060871
ELIF (<SRC.TOTALGOLD> < <DEF.INSURANCE_PRICE>) || (<OBJ.ISEVENT.T_ITEM_INSURED>)
SYSMESSAGELOC 04ec,3,1060869
ELSE
OBJ.EVENTS +T_ITEM_INSURED
CONSUMEGOLD <DEF.INSURANCE_PRICE>
SYSMESSAGELOC 04ec,3,1060873
OBJ.UPDATE 1
ENDIF
OBJ=<LOCAL.TMP>

[TYPEDEF T_ITEM_INSURED]
ON=@ClientToolTip
SRC.ADDCLILOC 1061682

[EOF]
(This post was last modified: 02-18-2016 02:46 AM by jexnico.)
02-18-2016 02:44 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
Error in my insure script - jexnico - 02-18-2016 02:44 AM
RE: Error in my insure script - karma - 02-18-2016, 03:01 AM
RE: Error in my insure script - pointhz - 02-18-2016, 05:21 AM
RE: Error in my insure script - Khaos - 02-18-2016, 07:46 AM

Forum Jump:


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