Raised This Month: $ Target: $400
 0% 

Trying to write an include File...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
VEN
Veteran Member
Join Date: Jan 2005
Old 10-01-2006 , 06:25   Re: Trying to write an include File...
Reply With Quote #8

Quote:
#if !defined _fun_shortcuts_included
#define _shortcuts_included
#if !defined _amxmodx_included
#include <amxmodx.inc>
#endif
You missed #endif for the first #if

When passing duration and holdtime to the write_short they should be integer, not float.
Also you should note that you have to convert the seconds: http://forums.alliedmods.net/showthr...422#post255422

There are no write_string in ScreenFade message, it should be write_short

FFADE_IN, FFADE_OUT, FFADE_MODULATE, FFADE_STAYOUT shouldn't be strings, it is an HLSDK constants, but it's not in the default amxx includes so you have to copy them to your inc file.

Quote:
#define FFADE_IN 0x0000 // Just here so we don't pass 0 into the function
#define FFADE_OUT 0x0001 // Fade out (not in)
#define FFADE_MODULATE 0x0002 // Modulate (don't blend)
#define FFADE_STAYOUT 0x0004 // ignores the duration, stays faded out until new ScreenFade message received
Quote:
index = 0
I'd not recommend that because you are using MSG_ONE so the correct index should be passed, i.e. 0 shouldn't take place here. Or if you want you can do that:
Quote:
message_begin(!id ? MSG_ALL : MSG_ONE, ...)
This will allow to pass id == 0 which will mean that message will be sent to all players.

Last edited by VEN; 10-02-2006 at 06:29.
VEN is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:46.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode