Agh...I've got a problem:
I can't install my application because...I don't know.
They said me that I have to check for the "Error.txt" file, but there isn't that file in the zip folder...
I tried to change the name of all my variables, like I did in my first application (that worked) but in this application this seems to not work...
I can post the code, may is there some lines that are not supported
#include "DragonFireSDK.h"
//location
int tx,ty,idz;int imgcb,imgcbp,centralbutton;
//suoni
int ndo,nre,nsi,nmi;
//boolean
bool PlayAnotherSound=true;
void idzrev(int tiltx,int tilty)
{
if (tilty<0&&tiltx<0)
idz=1;
if (tilty>0&&tiltx>0)
idz=2;
if (tilty>0&&tiltx<0)
idz=3;
if (tilty<0&&tiltx>0)
idz=4;
}
void soundload()
{
ndo=SoundAdd("Suoni/do.snd");
nsi=SoundAdd("Suoni/si.snd");
nre=SoundAdd("Suoni/re.snd");
nmi=SoundAdd("Suoni/mi.snd");
}
void soundstop()
{
SoundStop(ndo);
SoundStop(nsi);
SoundStop(nre);
SoundStop(nmi);
}
void play(int soundtoplay)
{
SoundPlay(soundtoplay);
}
void Letmusic()
{
if (PlayAnotherSound==true)
{
if (idz==1)
play(ndo);
if (idz==2)
play(nsi);
if (idz==3)
play(nre);
if (idz==4)
play(nmi);
PlayAnotherSound=false;
}
}
void IfChangeZoneControl(int firstcontrolzone,int secondcontrolzone)
{
if (firstcontrolzone!=secondcontrolzone)
{
soundstop();
PlayAnotherSound=true;
}
else
{
PlayAnotherSound=false;
}
}
int Touchcentralbutton(int id, int event, int x, int y)
{
if (event==1)
{
soundstop();
PlayAnotherSound=false;
ViewSetImage(centralbutton,imgcbp);
}
if (event==2)
{
soundstop();
PlayAnotherSound=false;
ViewSetImage(centralbutton,imgcbp);
}
if (event==3)
{
PlayAnotherSound=true;
ViewSetImage(centralbutton,imgcb);
}
return 0;
}
void LoadScreen()
{
int background=ViewAdd("Immagini/background.jpg",0,0);
imgcb=ImageAdd("Immagini/centralbutton.png");
imgcbp=ImageAdd("Immagini/centralbuttonpressed.png");
centralbutton=ViewAdd(imgcb,240-28+5,160-28+5+2);
int TouchHandle = TouchAdd(0, 0, 100, 100, Touchcentralbutton, 0);
ViewSetTouch(centralbutton, TouchHandle);
}
void AppMain()
{
LandscapeMode();
soundload();
LoadScreen();
}
void AppExit()
{
}
void OnTimer()
{
tx=TiltGetx();
ty=TiltGety();
int idzonaprev=idz;
idzrev(tx,ty);
IfChangeZoneControl(idzonaprev,idz);
Letmusic();
}
Thankyou in advance...