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
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






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
Post Reply 


Messages In This Thread
STRCMPI & VAR - pinku - 11-07-2013 06:04 PM
RE: STRCMPI & VAR - Alaric - 11-07-2013, 09:00 PM
RE: STRCMPI & VAR - pinku - 11-07-2013, 10:54 PM
RE: STRCMPI & VAR - Mordaunt - 11-07-2013, 11:13 PM

Forum Jump:


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