Wrong sketch?

hi to all! i have an ArduinoUNO, and i tried to use this sketch, but it wont work!! why??

/*

*/

#include <Wire.h>
#include "nunchuck_funcs.h"

#include <Servo.h>

Servo olhosim;

Servo olhonao;

Servo boca;

int valorolhosim = 0;

int valorolhonao = 0;

int valorboca = 0;
int loop_cnt=0;

byte accx,accy,accz,zbut,cbut,joyx,joyy;
int ledPin = 13;

void setup()
{

olhosim.attach(8);

olhonao.attach(9);

boca.attach(10);

Serial.begin(19200);
nunchuck_setpowerpins();
nunchuck_init(); // send the initilization handshake

Serial.print("WiiChuckDemo ready\n");
}

void loop()
{
if( loop_cnt > 100 ) { // a cada 100ms, pegue novos dados
loop_cnt = 0;

nunchuck_get_data();
olhosim.write(valorolhosim);
delay(1);
olhonao.write(valorolhonao);
delay(1);
boca.write(valorboca);

accx = nunchuck_accelx();
accy = nunchuck_accely();
accz = nunchuck_accelz();

zbut = nunchuck_zbutton();
cbut = nunchuck_cbutton();

joyy = nunchuck_joyy();
joyx = nunchuck_joyx();

valorolhosim = map(joyy, 0, 250, 0, 179);
delay (1);

valorolhonao = map(joyx, 0, 250, 0, 179);
delay (1);

valorboca = map(accy, 0, 150, 0, 179);
delay (1);

Serial.print("accx: "); Serial.print((byte)accx,DEC);
Serial.print("\taccy: "); Serial.print((byte)accy,DEC);
Serial.print("\taccz: "); Serial.println((byte)accz,DEC);
Serial.print("\tzbut: "); Serial.print((byte)zbut,DEC);
Serial.print("\tcbut: "); Serial.print((byte)cbut,DEC);
Serial.print("\tjoyx: "); Serial.print((byte)joyx,DEC);
Serial.print("\tjoyy: "); Serial.print((byte)joyy,DEC);
Serial.print("\valorolhosim: ");Serial.print((byte) valorolhosim,DEC);
Serial.print("\valorolhonao: ");Serial.print((byte) valorolhonao,DEC);

}
loop_cnt++;
delay(1);
}

it wont work!! why??

Usual questions - what does it do that it should not, and what does it not do that it should?

Please use code tags when posting code.

if( loop_cnt > 100 ) { // a cada 100ms, pegue novos dados explain, please.

wow!

ok, i have an arduinoUNO, and i need to control 2 servos with my wii nunchuck. I found this sketch, but i'm not able to load on my board, any suggest?

I found this sketch, but i'm not able to load on my board, any suggest?

If it won't load, it is fairly obvious that it cannot work, but you didn't say that.
What error message do you get when you try to upload?

here are the message: "nunchuck_setpowerpins was not declared on this scope

just try to save this file in the same folder where you have your sketch, then close and reload

https://raw.github.com/todbot/wiichuck_adapter/master/firmware/WiichuckDemo/nunchuck_funcs.h

to reinforce the previous poster's message: you are getting this error because you trying to call a function that hasn't been defined or declared...

nunchuck_setpowerpins();

Set the "verbose" option in the IDE and look at the output, you will very likely see that the compiler is complaining at you about not being able to find the include file.