In the headers you declare functions. (head)

int    MyFunction(int AValue, char* A_Pointer);

In a .cpp file you define the functions (bodies)

int    MyFunction(int AValue, char* A_Pointer)
{
    if (A_Pointer)
    {
        return AValue/7;
    }
    return 0;
}

When you call a function from another function, but the first function has no 
body (no execuable code is written!) you get a linking error like the one you 
got.

Have you written the code for SetTimer(); ? If not, do so.

Otherwise the error is because you declared the calling spec or something nasty 
wrong.

----- Original Message ----- 
From: "Yorg Kuijs" <[EMAIL PROTECTED]>
To: "Discussion of Half-Life Programming" <[email protected]>
Sent: Sunday, September 21, 2008 6:48 PM
Subject: Re: [hlcoders] grenade code


> Body as in a function?
> in that case no
> 
> if not I don't know what you mean
> 
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives, please 
> visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to