I'm trying to adapt the "old" function prototype for the return action.
Code:
public void OnPluginStart()
{
HookUserMessage(GetUserMessageId("TextMsg"), Event_TextMsg, true);
}
public Action Event_TextMsg(UserMsg msg_id, Handle pb, int players[32],int playersNum, bool reliable, bool init)
{
if(reliable)
{
char text[32];
PbReadString(pb, "params", text, sizeof(text),0);
if (StrContains(text, "SFUI_Notice_Match_Will_", false) != -1)
return Plugin_Handled;
}
return Plugin_Continue;
}
old one:
Code:
public Action:HookFade(UserMsg:msg_id, Handle:bf, const players[], playersNum, bool:reliable, bool:init)
its returning "
error 100: function prototypes do not match" on
HookUserMessage line.
Thanks in advance