View Single Post
  #2 (permalink)  
Old 10-31-2006, 04:33 PM
elihayun's Avatar
elihayun elihayun is offline
Senior Member
 
Join Date: Jan 2006
Posts: 350
elihayun is on a distinguished road
Nice article. A lot of people asking this question.

U can use the following code to make it easier.

PHP Code:
void AlertOnce(string alert_msgint ref)
{
    if (
ref 10)
        return;
 
  
ref--;
  static 
int LastAlert[10];
 
  if( 
LastAlert[ref] == || LastAlert[ref] < Bars)
  {
       
Alert(alert_msg); 
       
LastAlert[ref] = Bars;
  }

Reply With Quote