Make a new header file, called alert.h (could be called anything I
guess), and paste the following:
#ifndef _ALERT_H_
#define _ALERT_H_
typedef enum
{
at_notice,
at_console, // same as at_notice, but forces a
ConPrintf, not a message box
at_aiconsole, // same as at_console, but only shown if
developer level is 2!
at_warning,
at_error,
at_logged // Server print to console ( only in
multiplayer games ).
} ALERT_TYPE;
#define ALERT AlertMessage // I wanna ALERT back =)
extern void AlertMessage( ALERT_TYPE atype, char *szFmt, ... );
#endif
Then include alert.h in any file you want to use alerts in.
Hope this helps,
Michael Shimmins
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of geoff c
Sent: Friday, December 20, 2002 2:26 PM
To: [EMAIL PROTECTED]
Subject: [hlcoders] ALERT() on client DLL
OK so I posed two hard questions, so hopefully they can redeem an RTFM
question:
Is there an equivalent for ALERT(at_console ... ) in the client DLL? I
use a lot of ALERTs to help me debug, so they would be useful in my
quest to learn client-side stuff.
thanks.
--geoff
_______________________________________________
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