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
problem..
Author Message
Pidrila
Apprentice
*

Posts: 36
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Apr 2013
Reputation: 0



Post: #1
problem..
whats the problem in here??

Code:
IF (<src.tag.factioncolor>=1)
src.tag.colornamefaction = blue
elif (<src.tag.factioncolor>=2)
src.tag.colornamefaction = red
elif (<src.tag.factioncolor>=3)
src.tag.colornamefaction = yellow
endif

i get an error
10:24:ERROR:(status.scp,25)Undefined symbol ''
10:24:ERROR:(status.scp,27)Undefined symbol ''
10:24:ERROR:(status.scp,29)Undefined symbol ''
02-07-2014 06:25 PM
Find all posts by this user Like Post Quote this message in a reply
pinku
Journeyman
*

Posts: 118
Likes Given: 4
Likes Received: 2 in 2 posts
Joined: Apr 2013
Reputation: 4



Post: #2
RE: problem..
Can you try...

IF (<src.tag0.factioncolor>=1)
src.tag.colornamefaction = blue
elif (<src.tag0.factioncolor>=2)
src.tag.colornamefaction = red
elif (<src.tag0.factioncolor>=3)
src.tag.colornamefaction = yellow
endif
02-07-2014 07:14 PM
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: #3
RE: problem..
also == not = in the if Ranting
02-07-2014 07:46 PM
Find all posts by this user Like Post Quote this message in a reply
Pidrila
Apprentice
*

Posts: 36
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Apr 2013
Reputation: 0



Post: #4
RE: problem..
I also tried this == but i get error..

Sent from my PAP4055DUO using Tapatalk
02-07-2014 10:27 PM
Find all posts by this user Like Post Quote this message in a reply
Shidhun
Journeyman
*

Posts: 59
Likes Given: 5
Likes Received: 3 in 3 posts
Joined: Jul 2012
Reputation: 1



Post: #5
RE: problem..
tag.factioncolor = 01 --> it is 1
tag.factioncolor = 02 --> it is 2
tag.factioncolor = 04 --> it is 3

you are checking a hex-value agains a decimal-value
(This post was last modified: 02-07-2014 10:54 PM by Shidhun.)
02-07-2014 10:53 PM
Find all posts by this user Like Post Quote this message in a reply
Pidrila
Apprentice
*

Posts: 36
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Apr 2013
Reputation: 0



Post: #6
RE: problem..
okey resolved with tag0.

thanks Pinku
02-07-2014 11:12 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: #7
RE: problem..
(02-07-2014 10:53 PM)Shidhun Wrote:  tag.factioncolor = 01 --> it is 1
tag.factioncolor = 02 --> it is 2
tag.factioncolor = 04 --> it is 3

you are checking a hex-value agains a decimal-value
in if statements value should be evaluated.
02-08-2014 04:05 AM
Find all posts by this user Like Post Quote this message in a reply
pinku
Journeyman
*

Posts: 118
Likes Given: 4
Likes Received: 2 in 2 posts
Joined: Apr 2013
Reputation: 4



Post: #8
RE: problem..
(02-07-2014 11:12 PM)Pidrila Wrote:  okey resolved with tag0.

thanks Pinku

You're welcome!
Had the same problem before! Tongue

I got here this simple explanation why this happens, Coruja wrote it a while ago on my thread.

(08-04-2013 10:50 AM)Coruja Wrote:  if the <SRC.ACCOUNT.TAG.VOTE> doesn't exists it will return a null value, so the sphere will read the script like this !( == 1) instead !(0 == 1)
to avoid it you must use TAG0 instead of TAG, because TAG0 automatically returns a 0 value if the tag is empty
02-08-2014 06:53 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)