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
Rulette is not giving gold
Author Message
Joshua
Apprentice
*

Posts: 11
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Apr 2012
Reputation: 0



Post: #1
Rulette is not giving gold
Hi everyone!

I'm trying to do a roulette but it's not giving gold cause it has an ERROR at the console caused by NEWGOLD.

The message is telling the correct number, but it's not giving gold

Hope you can help me.

Thanks in advance.



[FUNCTION f_roulette_win]

//Give proper gold

VAR.MULTIPLIER=<ARGS>

//Calc the gold

VAR.NEWGOLD=<ARGS>*<LINK.TAG.WAGER>

VAR.TOTALGOLD=<VAR.NEWGOLD>+<LINK.TAG.WAGER>

//Tell them what they won

LINK.SYSMESSAGE="You recieve <EVAL <VAR.TOTALGOLD>> gold coins!!!"

//Create it and put it in your pack

SRC.NEWGOLD <EVAL <VAR.TOTALGOLD>> (I also tried with <VAR.TOTALGOLD> only, and it's not working)

LINK.ACT.CONT=<LINK.FINDLAYER(21).UID>

//Now create the item that shows the gump

LINK.NEWITEM i_roulette_win

LINK.ACT.CONT=<LINK.UID>

RETURN 1
(This post was last modified: 10-29-2021 07:04 AM by Joshua.)
10-29-2021 06:59 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Rulette is not giving gold - Joshua - 10-29-2021 06:59 AM
RE: Rulette is not giving gold - Joshua - 10-29-2021, 08:43 PM
RE: Rulette is not giving gold - golfin - 10-30-2021, 11:28 AM
RE: Rulette is not giving gold - Joshua - 10-30-2021, 08:29 PM
RE: Rulette is not giving gold - golfin - 10-31-2021, 01:44 PM
RE: Rulette is not giving gold - Joshua - 10-31-2021, 05:16 PM

Forum Jump:


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