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






Thread Closed 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
error
Author Message
Kapa
Journeyman
*

Posts: 74
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Oct 2014
Reputation: 0



Post: #1
error
Hi i keep getting this error
09:33:ERROR:(quest.scp,1286)Undefined symbol ''
this is the line 1286
IF <SRC.TAG.princess_help>=1

Script works fine even with the error.

[EVENTS e_notwellcome_burned]
ON=@NPCSeeNewPlayer
IF <SRC.TAG.princess_help>=1
SAY You pig you not wellcome In this City
ATTACK
endif
(This post was last modified: 10-12-2014 06:44 PM by Kapa.)
10-12-2014 06:41 PM
Find all posts by this user
Artyk
Journeyman
*

Posts: 75
Likes Given: 43
Likes Received: 9 in 9 posts
Joined: Sep 2014
Reputation: 0



Post: #2
RE: error
With only one "=" you set the variable, so your IF will always be true, it should be

IF <SRC.TAG.princess_help>==1

That error happens sometimes when a variable isn't set before the IF.
You can use TAG0 instead of TAG, meaning that TAG gets value 0 if it isn't set
10-12-2014 08:10 PM
Find all posts by this user
Kapa
Journeyman
*

Posts: 74
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Oct 2014
Reputation: 0



Post: #3
RE: error
Thanks Smile
10-13-2014 12:43 AM
Find all posts by this user
Kapa
Journeyman
*

Posts: 74
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Oct 2014
Reputation: 0



Post: #4
RE: error
Any ideas? Smile sorry for being noob Smile

[SPEECH jobkingburn]

on=*helo*
on=*hello*
on=*hi*
on=*quest*
IF <SRC.TAG.kingburn_help>==1 /line1211
SAY You Betrade me. Die ! Guards!!!
ELSE
say <SRC.SEX Sir/Lady> Hey you! I am King Morgan Firebeard and I need your help.. say ~what~
return 1
endif


20:25:1:'qww' Says UNICODE 'ENG' 'hi' mode=0
20:25:ERROR:(quest.scp,1211)Undefined symbol ''
10-13-2014 05:28 AM
Find all posts by this user
darksun84
Sir Spamalot
****

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



Post: #5
RE: error
IF <SRC.TAG.kingburn_help>==1 /line1211

should be

IF <SRC.TAG0.kingburn_help>==1 //line1211
(This post was last modified: 10-13-2014 05:49 AM by darksun84.)
10-13-2014 05:35 AM
Find all posts by this user
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #6
RE: error
you must use TAG0 instead TAG
if you use TAG (without 0) the script will return a empty text if the tag is not set. Using TAG0 it will return 0 to prevent the blank result

just translate the script and you will note the difference

example: if the TAG.A is not set, sphere will read the script line as it is:

IF (==1)

this will result a error because sphere doesnt know what is this empty string. If you use TAG0 it will return this

IF (0==1)

and this will work fine because sphere can read this line without problems
10-13-2014 08:01 AM
Find all posts by this user
[+] 1 user Likes Coruja's post
Thread Closed 


Forum Jump:


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