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?