it says
Quote: "1>c:\users\*\documents\visual studio 2008\projects\fighter\fighter\player.cpp(20) : error C2296: '+' : illegal, left operand has type 'time_t (__cdecl *)(time_t *)'
"
and my code looks like
int time = 0;
void PlayerSetup(void)
{
if (dbSpriteCollision(1,2) == 1)
{
int maxtime = 1000;
if (time + maxtime <= dbTimer())
{
int HealthX = dbSpriteX(12);
int HealthY = dbSpriteY(12);
Health -= 15;
dbStretchSprite(12,Health,100);
dbPasteSprite(12,HealthX,HealthY);
time = dbTimer();
}
}if (Health <= 0)
{
dbText(300,400,"Game Over!");
dbDeleteSprite(12);
}
}
Beginner In the Language.