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
Finding Region Name
Author Message
mlyon83
Apprentice
*

Posts: 44
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Apr 2013
Reputation: 0



Post: #1
Finding Region Name
I would like to know how to define SRC.REGION.NAME, but "Jail" is currently unidentified in console error:

Code:
IF (<LINK.ACCOUNT.TAG.JAIL_STATUS> == 1)
    IF (<EVAL <TIME> / 10> >= <EVAL <TIME> / 10>+<EVAL <LINK.ACCOUNT.TAG.JAIL_TIME>>)
        LINK.ACCOUNT.TAG.JAIL_STATUS=0
        LINK.TAG.JAIL_LOGIN=0
        LINK.TAG.JAIL_LOGIN2=0
        LINK.EVENTS=-e_player_jailed
        LINK.GO=<LINK.TAG.JAIL_RELEASE_POSITION>
        LINK.MESSAGE @00 You feel free.
    ELSE
        IF (<LINK.REGION.NAME> != Jail)
            VAR.NEXT_JAIL_CELL=<VAR.NEXT_JAIL_CELL>+1
            IF (<VAR.NEXT_JAIL_CELL> >= 5)
                LINK.GO=3905,1255,-10
                VAR.NEXT_JAIL_CELL=0
            ELSEIF (<VAR.NEXT_JAIL_CELL> >= 4)
                LINK.GO=3904,1265,-10
            ELSEIF (<VAR.NEXT_JAIL_CELL> >= 3)
                LINK.GO=3914,1265,-10
            ELSEIF (<VAR.NEXT_JAIL_CELL> >= 2)
                LINK.GO=3914,1255,-10
            ELSEIF (<VAR.NEXT_JAIL_CELL> >= 1)
                LINK.GO=3905,1255,-10
            ENDIF
            LINK.MESSAGE @00 You cannot leave jail until you're forgiven.
        ELSE
            LINK.MESSAGE @00 Nothing shows, test.
        ENDIF
    ENDIF
ENDIF

TIMER=1
RETURN 1
05-18-2013 04:21 AM
Find all posts by this user Like Post Quote this message in a reply
RanXerox
Master
**

Posts: 550
Likes Given: 1
Likes Received: 12 in 9 posts
Joined: Dec 2010
Reputation: 19



Post: #2
RE: Finding Region Name
The value is a string, so use STRCMP or STRCMPI
05-18-2013 06:07 AM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #3
RE: Finding Region Name
And don't use VARS

[Image: 2nis46r.jpg]
05-18-2013 07:08 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
mlyon83
Apprentice
*

Posts: 44
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Apr 2013
Reputation: 0



Post: #4
RE: Finding Region Name
(05-18-2013 07:08 AM)Mordaunt Wrote:  And don't use VARS

What's wrong with VARs? What else is there to use?
05-18-2013 10:28 AM
Find all posts by this user Like Post Quote this message in a reply
Alaric
Journeyman
*

Posts: 227
Likes Given: 7
Likes Received: 9 in 4 posts
Joined: Oct 2012
Reputation: 7



Post: #5
RE: Finding Region Name
(05-18-2013 10:28 AM)mlyon83 Wrote:  
(05-18-2013 07:08 AM)Mordaunt Wrote:  And don't use VARS

What's wrong with VARs? What else is there to use?

tag
05-18-2013 10:46 AM
Find all posts by this user Like Post Quote this message in a reply
Rattlehead
Master
**

Posts: 290
Likes Given: 3
Likes Received: 8 in 6 posts
Joined: Jun 2012
Reputation: 8



Post: #6
RE: Finding Region Name
use LOCAL instead, as VARs will eat up resources alot more than LOCALs will

[Image: matts_siggy.gif]
05-18-2013 10:47 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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