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
STRCMPI & VAR
Author Message
pinku
Journeyman
*

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



Post: #1
STRCMPI & VAR
Long story short,

Created a thread for something else, now I can't get something else to work:

Code:
IF ((<SRC.TAG.MYTAG> == 01) && (<EVAL <SRC.TAG.MYTAG2>> > <VAR.RECORD1>))
VAR.RECORD1=<SRC.TAG.MYTAG2>
VAR.RECORDER1=<SRC.NAME>

So, to set a new second record, you must NOT be Recorder1 and have more points than RECORD2.

Then...

Code:
ELSEIF ((<SRC.TAG.MYTAG> == 01) && (<EVAL <SRC.TAG.MYTAG2>> > <VAR.RECORD2>) && !(STRCMPI("<SRC.NAME>","<EVAL <VAR.RECORDER1>>"))

VAR.RECORD2=<SRC.TAG.MYTAG2>
VAR.RECORDER2=<SRC.NAME>

Code:
Error: Undefined symbol 'Name'

If I don't EVAL the VAR, a higher pointer can take all records.. Record1, Record2, Record3...
In the end, STRCMPI doesn't seem to work in this case... Any suggestions on how I can compare the character name to a stored name in a VAR?

Even though I have the MYTAG2 higher than the RECORD2, it doesn't seem to work...

Suggestions?

Edit:

Also tried

Code:
ELSEIF ((<SRC.TAG.MYTAG> == 01) && (<EVAL <SRC.TAG.MYTAG2>> > <VAR.RECORD2>) && (!STRMATCH("<SRC.NAME>","<EVAL <VAR.RECORDER1>>"))

Same error:

Code:
Error: Undefined symbol 'Name'


_____________
PS: This is an older method I was using, but I am curious.. Trying to make it work anyway.
I am now -trying- to use the list method RanXerox told me. Smile

Thanks everyone.
(This post was last modified: 11-07-2013 07:26 PM by pinku.)
11-07-2013 06:04 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: #2
RE: STRCMPI & VAR
First suggestion - store uids, turing an uid into name is easier than name into uid...
Second - STRMATCH(<src.name>,<uid.<var.recorder1>.name>) if uid stored
or STRMATCH(<src.name>,<var.recorder1>).
(This post was last modified: 11-07-2013 11:53 PM by Alaric.)
11-07-2013 09:00 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: #3
RE: STRCMPI & VAR
<uid.<var.recorder1>.name> worked just fine for me.
Much better now.

Thank you very much, Alaric!
11-07-2013 10:54 PM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

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



Post: #4
RE: STRCMPI & VAR
also note of point....


strmatch and strcmpi are for strings, eval is for integers, so an eval in a strcmpi or strmatch arguement is not valid

[Image: 2nis46r.jpg]
11-07-2013 11:13 PM
Visit this user's website 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)