Quote:
Originally Posted by Supremache
what do you mean ?
szBuffer[istrlen-2] = '.' // it work like replace so i think i dont need to clear it !!
|
I meant why you didn't use jimmy's code and instead you kept using your code, jimmy's code is more efficient and faster.
And also you don't need the iPlayer variable just check whether the buffer is empty or not, like this...
PHP Code:
if( szBuffer[0] != EOS )
{
szBuffer[ strlen( szBuffer ) - 2 ] = '.' // Changed the strlen form -1 to -2 because i added a space
CC_SendMessage(id, szBuffer);
}
else
{
CC_SendMessage( id, "There are no vip's online." );
}
__________________