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
|
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.