Author Topic: what is the problem with this ?  (Read 1330 times)

mimomohamed

  • Full Member
  • ***
  • Posts: 126
  • Karma: +5/-1
    • View Profile
    • http://www.egyptforall.smffy.com
what is the problem with this ?
« on: November 05, 2011, 01:25:46 pm »
w_sound <- null;

function onScriptLoad()
{
     w_Sound <- null;
}

function onPlayerJoin( player )
{
    if ( !w_Sound )
    {
         w_Sound = FindSound( "welcome.mp3" );
         if ( w_Sound )
         {
              w_Sound.Open();
              w_Sound.Play();
         
              return 1;
         }
    }
    else
    {
    w_Sound.Open();
         w_Sound.Play();
      
         return 1;
    }
}

mimomohamed

  • Full Member
  • ***
  • Posts: 126
  • Karma: +5/-1
    • View Profile
    • http://www.egyptforall.smffy.com
Re: what is the problem with this ?
« Reply #1 on: November 05, 2011, 01:37:37 pm »
 ;D THANKS WORKS NOW

mimomohamed

  • Full Member
  • ***
  • Posts: 126
  • Karma: +5/-1
    • View Profile
    • http://www.egyptforall.smffy.com
Re: what is the problem with this ?
« Reply #2 on: November 05, 2011, 01:51:39 pm »
NO man i don't think like that but thanks   ;D

 

© Liberty Unleashed Team.