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-nmm6 (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-nmm6 (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-nmm6 (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 ' '
Author Message
Kyrbis
Journeyman
*

Posts: 54
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Mar 2012
Reputation: 0



Post: #1
Undefined Symbol ' '
And another time I don't get where this small error is coming from in this event :

EVENTS e_orkgesicht]
ON=@ItemTargOn_Char
IF (<I.ACT.TYPE>==t_scissors) && (<ARGO.TAG.RASSE.ORK>==1)
message Da gibt es nichts zum schneiden.
RETURN 1
ELSE
RETURN 0
ENDIF

ON=@ItemEquip
IF (<I.ACT.TYPE>==t_hair) && (<I.TAG.RASSE.ORK>==1)
message Du kannst keine Frisuren aendern.
RETURN 1
ELSE
RETURN 0
ENDIF


Error message is:ERROR:(rassenevents.scp,11)Undefined symbol ''

The script works though
07-26-2013 10:16 PM
Find all posts by this user Like Post Quote this message in a reply
Darkyhood
Apprentice
*

Posts: 36
Likes Given: 2
Likes Received: 3 in 3 posts
Joined: Mar 2012
Reputation: 0



Post: #2
RE: Undefined Symbol ' '
(This post was last modified: 07-26-2013 11:20 PM by Darkyhood.)
07-26-2013 11:19 PM
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: #3
RE: Undefined Symbol ' '
I'm not sure what the script is for but... the tag might be problem, ain't it empty? And the I.ACT.TYPE... switch it just for ACT.TYPE==.

But if the scissors have this event, why are you checking whether they are scissors?
07-26-2013 11:24 PM
Find all posts by this user Like Post Quote this message in a reply
Kyrbis
Journeyman
*

Posts: 54
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Mar 2012
Reputation: 0



Post: #4
RE: Undefined Symbol ' '
Damn, got it. it was the TAG, the script was checking someone who did not have this TAG at all. just did not think about that.
and the event does not go to scissors, its on the players.
thanks for all your help, really have to think all variables through
07-26-2013 11:31 PM
Find all posts by this user Like Post Quote this message in a reply
xwerswoodx
Journeyman
*

Posts: 86
Likes Given: 4
Likes Received: 7 in 4 posts
Joined: Jun 2012
Reputation: 0

UoMMO

Post: #5
RE: Undefined Symbol ' '
(<I.TAG.RASSE.ORK>==1)

change with

(<DTAG.RASSE.ORK>==1)
07-27-2013 12:28 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: #6
RE: Undefined Symbol ' '
tags/local are already evaluated in if/loop constructs Big Grin
07-27-2013 02:37 AM
Find all posts by this user Like Post Quote this message in a reply
xwerswoodx
Journeyman
*

Posts: 86
Likes Given: 4
Likes Received: 7 in 4 posts
Joined: Jun 2012
Reputation: 0

UoMMO

Post: #7
RE: Undefined Symbol ' '
However, this doesn't mean it will not give an error Smile)) On the other hand, this is only habit Big Grin
(This post was last modified: 07-27-2013 04:27 AM by xwerswoodx.)
07-27-2013 04:26 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: #8
RE: Undefined Symbol ' '
bad habit :\
07-27-2013 04:43 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: #9
RE: Undefined Symbol ' '
(07-27-2013 04:26 AM)xwerswoodx Wrote:  However, this doesn't mean it will not give an error Smile)) On the other hand, this is only habit Big Grin
I don't know but I like my scripts to be the simpliest as possible. That's the satisfaction. The more you complicate things, the more you're confused and in that point I'd rather delete it and rewrite it Tongue This was just a small example... Why dtag, when its not necessary Smile
(This post was last modified: 07-27-2013 04:47 AM by Alaric.)
07-27-2013 04: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: #10
RE: Undefined Symbol ' '
like darky said

TAG.RASSE.ORK

should be

TAG0.RASSE.ORK

so in the case the tag doesnt exist it will eval to 0 and wont break the script

[Image: matts_siggy.gif]
07-27-2013 01:17 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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