26 lines
716 B
Plaintext
26 lines
716 B
Plaintext
|
//><><><><><><><><><><><><><><><><><><><><><><><><>*
|
||
|
//:: Name: _c_check_title
|
||
|
//:: Function: StartingConditional
|
||
|
//><><><><><><><><><><><><><><><><><><><><><><><><>*
|
||
|
/*
|
||
|
Check the length of the Title being spoken if
|
||
|
it's to longer than 30 letter's or empty
|
||
|
return FALSE;
|
||
|
*/
|
||
|
//><><><><><><><><><><><><><><><><><><><><><><><><>*
|
||
|
//:: Created By: RagE aka Napalm-uk-RTW
|
||
|
//:: Created On: 25/9/05
|
||
|
//:: Copyright (c) 2002 *RTW* corp.
|
||
|
//><><><><><><><><><><><><><><><><><><><><><><><><>*
|
||
|
int StartingConditional()
|
||
|
{
|
||
|
string sMatch = GetMatchedSubstring(0);
|
||
|
int nLength = GetStringLength(sMatch);
|
||
|
|
||
|
if(nLength < 1 || nLength > 30) {
|
||
|
PlaySound("gui_error");
|
||
|
return FALSE;
|
||
|
}
|
||
|
return TRUE;
|
||
|
}
|