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-nmm8 (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-nmm8 (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-nmm8 (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-nmm8 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unidentified Symbol:
Author Message
Mordaunt
Super Moderator
****

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



Post: #1
Unidentified Symbol:
I have been trouble shooting this for a couple of hours and it won't go away,
I get the error Undefined symbol ''
Based on this section of my script:

Code:
[FUNCTION acc_is_owner]
for <src.account.chars>
    if (<account.char.<eval <local._for>-1>.is_owner>)
        return 1
    endif
endfor
return 0

specifically the if (<account.char.<eval <local._for>-1>.is_owner>) line.

There is nothing wrong with this function it runs perfectly everywhere else in the script when it is called where the player is src (and it is called a lot!)

It is causing the error ONLY WHEN CALLED BY THIS EVENT where the player is default rather than src
Code:
ON=@ItemDClick
    if !(strcmpi(*<strarg <act.name>>*, *Recovery*)) || (<act.defname>==<def.vendor_deed_id>)
        if <QVAL (<def.account_ownership>)? (<I.is_owner>) || (<I.acc_is_owner>):(<I.is_owner>)> || (<I.is_coowner>) || (<I.is_friend>)
            obj=<region.tag0.sign>
            if (<obj.dtag0.vendors> < <obj.dtag0.max_vendors>)
                obj.tag0.vendors += 1
                return 0
            else
                sysmessage @,,1 You have no available vendor slots
                sysmessage @,,1 You must remove an existing vendor before you can place a new one.
                return 1
            endif
        else
                sysmessage @,,1 Only people on the house list may place vendors here
                return 1
        endif
endif

Looking for a fresh pair of eyes here to see if anyone can see what I am missing.

[Image: 2nis46r.jpg]
(This post was last modified: 10-16-2012 12:56 PM by Mordaunt.)
10-16-2012 12:55 PM
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
Unidentified Symbol: - Mordaunt - 10-16-2012 12:55 PM
RE: Unidentified Symbol: - Extreme - 10-16-2012, 02:00 PM
RE: Unidentified Symbol: - Mordaunt - 10-16-2012, 11:15 PM
RE: Unidentified Symbol: - ShiryuX - 10-17-2012, 01:17 AM
RE: Unidentified Symbol: - RanXerox - 10-17-2012, 01:18 AM
RE: Unidentified Symbol: - Mordaunt - 10-17-2012, 03:29 AM

Forum Jump:


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