User Tag List

Results 1 to 10 of 10

Thread: Simple Script: SFX Player

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Gel
    Join Date
    Jan 2015
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    372
    Level
    7
    vBActivity - Bars
    Lv. Percent
    4.05%
    tow error
    variable undeclared at line 38 and 43

    someone can help me

  2. #2
    Username Kaiser SUCCESSOR's Avatar
    Join Date
    Jul 2000
    Location
    Winning.
    Age
    37
    Posts
    4,436
    Mentioned
    152 Post(s)
    Tagged
    7 Thread(s)
    vBActivity - Stats
    Points
    10,565
    Level
    30
    vBActivity - Bars
    Lv. Percent
    52.35%
    Quote Originally Posted by Nyrox View Post
    tow error
    variable undeclared at line 38 and 43

    someone can help me
    Are you using any other scripts? There doesnt seem to be anything wrong with it.

    (besides the obscene amount of comments)

    Code:
    ffc script sfx_player {
    	void run(int sfx_slot, int sfx_delay) {
    		int counter = 0; 
    		do{ 
    			if (counter == 0) {
    				Game->PlaySound(sfx_slot); 
    				counter = sfx_delay; //reset counter
    			} 
    			else
    				counter--; 
    			Waitframe(); 
    		} while(sfx_delay != 0); //continue while conditions are met
    	}//! End of run function
    }//! End of ffc script

    EDIT: Just saw version 2. A lot more to look through in that one.

    EDIT2: Have you imported std.zh?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Armageddon Games is a game development group founded in 1997. We are extremely passionate about our work and our inspirations are mostly drawn from games of the 8-bit and 16-bit era.
Social