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
Undefined symbol '' error
Author Message
Oxtar
Apprentice
*

Posts: 48
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Jul 2012
Reputation: 0



Post: #1
Undefined symbol '' error
Well i've been wondering why i keep getting this error into Sphere.

Undefined symbol ' '

Quote:ON=@EquipTest
if (<SRC.TAG.Heaven>==0)
SRC.SYSMESSAGE You are not from the Heaven Faction!
return 1
endif

Someone could tell me what is wrong?

EDIT :

The IF line is the one getting reported in Sphere Console
(This post was last modified: 12-17-2012 08:33 AM by Oxtar.)
12-17-2012 08:32 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #2
RE: Undefined symbol '' error
You should use the format src.tag0.heaven

Tag stores string type variables, so if tag.heaven is empty, the if will compare 0 to an empty string and then causing the error.

Instead by using the format tag0.heaven, sphere will automatically consider every empty tag as having a value of 0. (same for VAR ).
12-17-2012 08:55 AM
Find all posts by this user Like Post Quote this message in a reply
Oxtar
Apprentice
*

Posts: 48
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Jul 2012
Reputation: 0



Post: #3
RE: Undefined symbol '' error
You are right.

I wonder how i missed that one.

You know, when you are looking at the same code over and over for a couple of days? haha
(This post was last modified: 12-17-2012 09:27 AM by Oxtar.)
12-17-2012 09:27 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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