Quote:
Originally Posted by ConnorMcLeod
To retrieve i efficiently, use ArraySize instead of loop + if( !IsValidMessage(client, i) )
Of course this assumes you delete array item if you delete a message.
|
The reason I didn't do that is because when DeleteItem is used, all the others shift down.
Therefore, the index returned from AddMessage() will be wrong if a message before it was deleted.
__________________