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
Vendor Supply
Author Message
Van Glan Bloom
Journeyman
*

Posts: 104
Likes Given: 2
Likes Received: 3 in 3 posts
Joined: Jun 2013
Reputation: 0



Post: #1
Vendor Supply
Hi guys,

What i make wrong in this script? I try make a vendor suplly where the player can choose the number of itens for buy. However the script is not to check if the player has the necessary money in the bag

I have this :

Code:
if (src.findlayer(21).rescount i_gold> < (<EVAL(<ARGTXT[0]>) *100>)
src.sysmessage @09c1 You do not have enought gold coins to trade.
else
serv.newitem i_log, <eval(<argtxt[0]>)>,<src.findlayer.21.uid>
src.consume i_gold (<eval(<argtxt[0]>) *100)
src.act.bounce
return 1
endif




This problem is solved.
Now i have other bug, if I Enter a value that is not numeric it gives error in sphere

Code:
04:49:ERROR:(System - NPC Vendor Supply.scp,505)Undefined symbol '' ['<a']

I can indicate that the script can only enter numeric values?




The problem is Solved, thx
(This post was last modified: 06-13-2015 01:59 PM by Van Glan Bloom.)
06-13-2015 01:25 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Vendor Supply - Van Glan Bloom - 06-13-2015 01:25 PM
RE: Vendor Supply - Van Glan Bloom - 06-13-2015, 11:08 PM
RE: Vendor Supply - Coruja - 06-15-2015, 07:23 AM
RE: Vendor Supply - Van Glan Bloom - 06-15-2015, 07:53 AM
RE: Vendor Supply - JohnVeritas - 06-15-2015, 09:38 AM
RE: Vendor Supply - XuN - 06-15-2015, 04:28 PM
RE: Vendor Supply - Van Glan Bloom - 06-15-2015, 10:46 PM
RE: Vendor Supply - darksun84 - 06-15-2015, 11:48 PM

Forum Jump:


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