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
speech
Author Message
Skul
Master
**

Posts: 413
Likes Given: 0
Likes Received: 19 in 15 posts
Joined: Jun 2012
Reputation: 9



Post: #7
RE: speech
sure
Code:
[FUNCTION char_parse]
LOCAL.ARGS=<ARGS>x
WHILE (<EVAL <STRPOS -1 <STRSUB -1 1 <LOCAL.ARGS>> <LOCAL.ARGS>> +1> >= <dLOCAL.X>)
    LOCAL.ASC=<ASC <STRSUB <dLOCAL.X> 1 <LOCAL.ARGS>>>
    IF (<LOCAL.ASC>==022) || (<LOCAL.ASC>==023) || (<LOCAL.ASC>==025) || (<LOCAL.ASC>==026) || (<LOCAL.ASC>==027) || (<LOCAL.ASC>==028) || (<LOCAL.ASC>==029) || (<LOCAL.ASC>==02A) || (<LOCAL.ASC>==02B) || (<LOCAL.ASC>==02C) || (<LOCAL.ASC>==02D) || (<LOCAL.ASC>==02F) || (<LOCAL.ASC>==03C) || (<LOCAL.ASC>==03D) || (<LOCAL.ASC>==03E) || (<LOCAL.ASC>==05E) || (<LOCAL.ASC>==07C) || (<LOCAL.ASC>==07E)
        IF (STRMATCH(<LOCAL.RETURN>,0))
            LOCAL.RETURN=<ASC <STRSUB <dLOCAL.X> 1 <LOCAL.ARGS>>>
        ELSE
            LOCAL.RETURN=<LOCAL.RETURN><ASC <STRSUB <dLOCAL.X> 1 <LOCAL.ARGS>>>
        ENDIF
    ELSE
        IF (STRMATCH(<LOCAL.RETURN>,0))
            LOCAL.RETURN=<STRSUB <dLOCAL.X> 1 <LOCAL.ARGS>>
        ELSE
            LOCAL.RETURN=<LOCAL.RETURN><STRSUB <dLOCAL.X> 1 <LOCAL.ARGS>>
        ENDIF
    ENDIF
    LOCAL.X += 1
ENDWHILE
RETURN <STRSUB 0 <EVAL <EVAL STRLEN(<LOCAL.RETURN>)> +-1> <LOCAL.RETURN>>
So with this, you would use is like so:
Code:
[speech spk_player]
on=*
local.args=<char_parse <args>>
if (strmatch(<local.args>,test))
say=<args>
endif
It's just a quick work around, if you want to compare math algorithms using strmatch you can do something like:
Code:
local.args=<char_parse <args>>
local.cmp=<char_parse />
if (strmatch(<local.args>,<local.cmp>))
say=compared.
endif

"I ask a question to the answer I already know."

Marchadium :: http://www.marchadium.ca/ :: Join us!
08-20-2012 11:51 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
speech - Art - 08-20-2012, 07:21 AM
RE: speech - Extreme - 08-20-2012, 07:48 AM
RE: speech - Art - 08-20-2012, 08:55 PM
RE: speech - Shaklaban - 08-20-2012, 08:57 PM
RE: speech - Skul - 08-20-2012, 11:33 PM
RE: speech - Art - 08-20-2012, 11:38 PM
RE: speech - Skul - 08-20-2012 11:51 PM
RE: speech - Art - 08-21-2012, 12:56 AM
RE: speech - Extreme - 08-21-2012, 01:14 AM
RE: speech - Shaklaban - 08-21-2012, 01:33 AM
RE: speech - Extreme - 08-21-2012, 01:48 AM
RE: speech - Skul - 08-21-2012, 01:55 AM

Forum Jump:


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