I have some code that looks like this
Code:
if (eventFunc != INVALID_FUNCTION)
{
PrintToChat(client, "Function is about to be called.");
Call_StartFunction(INVALID_HANDLE, func);
Call_PushCell(client);
Call_Finish();
}
That calls a function with my client as a parameter, the func in the method looks like this:
Code:
public Function:myFunc(client)
{
PrintToChat(client, "Function has been called.");
}
But for some reason, "Function is about to be called" is printed once to the chat, and "Function has been called" is being printed twice (being called twice I assume).
Anyone know what causes this/a fix?