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
statlock problem
Author Message
ograso
Journeyman
*

Posts: 135
Likes Given: 10
Likes Received: 2 in 2 posts
Joined: May 2014
Reputation: 0



Post: #1
statlock problem
Hey all,

I receive an errors on console as follow. Statchange using in player event.

Code:
ERROR:(e_player.scp,131)Can't resolve <STATLOCK[3]>
ERROR:(e_player.scp,131)Undefined symbol ''
ERROR:(e_player.scp,134)Can't resolve <STATLOCK[3]>
ERROR:(e_player.scp,134)Undefined symbol ''

Any idea?


Code:
ON=@StatChange
IF (<TAG0.OVERRIDE.STATSUM>)
LOCAL.STATSUM=<TAG0.OVERRIDE.STATSUM>
ELSE
LOCAL.STATSUM=<SERV.SKILLCLASS.0.STATSUM>
ENDIF
LOCAL.STATS=<EVAL <OSTR>+<ODEX>+<OINT>>
IF (<LOCAL.STATS> == <LOCAL.STATSUM>)
    IF (<STATLOCK[<ARGN1>]> == lock_locked)         // Line 131
    RETURN 1
    ENDIF
    IF (<STATLOCK[<ARGN1>]> == lock_up)              // Line 134
        FOR 0 2
            IF (<LOCAL._FOR> != <ARGN1>)
                IF (<STATLOCK[<dLOCAL._FOR>]> == lock_down)
                    IF (<LOCAL._FOR> == 0)
                        IF (<EVAL <OSTR>-1> > 0)
                        OSTR --
                        MAXHITS --
                            IF (<ARGN1> == 0)
                            MAXHITS += <EVAL <ARGN2>-<OSTR>>
                            ELIF (<ARGN1> == 1)
                            MAXMANA += <EVAL <ARGN2>-<OINT>>
                            ELIF (<ARGN1> == 2)
                            MAXSTAM += <EVAL <ARGN2>-<ODEX>>
                            ENDIF
                        RETURN 0
                        ENDIF
                    ELIF (<LOCAL._FOR> == 1)
                        IF (<EVAL <OINT>-1> > 0)
                        OINT --
                        MAXMANA --
                            IF (<ARGN1> == 0)
                            MAXHITS += <EVAL <ARGN2>-<OSTR>>
                            ELIF (<ARGN1> == 1)
                            MAXMANA += <EVAL <ARGN2>-<OINT>>
                            ELIF (<ARGN1> == 2)
                            MAXSTAM += <EVAL <ARGN2>-<ODEX>>
                            ENDIF
                        RETURN 0
                        ENDIF
                    ELIF (<LOCAL._FOR> == 2)
                        IF (<EVAL <ODEX>-1> > 0)
                        ODEX --
                        MAXSTAM --
                            IF (<ARGN1> == 0)
                            MAXHITS += <EVAL <ARGN2>-<OSTR>>
                            ELIF (<ARGN1> == 1)
                            MAXMANA += <EVAL <ARGN2>-<OINT>>
                            ELIF (<ARGN1> == 2)
                            MAXSTAM += <EVAL <ARGN2>-<ODEX>>
                            ENDIF
                        RETURN 0
                        ENDIF
                    ENDIF
                RETURN 1
                ENDIF
            ENDIF
        ENDFOR    
    RETURN 1
    ENDIF
ELIF (<LOCAL.STATS> < <LOCAL.STATSUM>)
    IF (<ARGN1> == 0)
    MAXHITS += <EVAL <ARGN2>-<OSTR>>
    ELIF (<ARGN1> == 1)
    MAXMANA += <EVAL <ARGN2>-<OINT>>
    ELIF (<ARGN1> == 2)
    MAXSTAM += <EVAL <ARGN2>-<ODEX>>
    ENDIF
ENDIF
03-23-2015 12:04 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
statlock problem - ograso - 03-23-2015 12:04 AM
RE: statlock problem - Shamino - 03-23-2015, 12:48 AM
RE: statlock problem - ograso - 03-23-2015, 02:47 AM
RE: statlock problem - Shamino - 03-23-2015, 03:16 AM
RE: statlock problem - ograso - 03-23-2015, 04:08 AM
RE: statlock problem - XuN - 03-23-2015, 06:39 PM

Forum Jump:


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