13.07.2017, 03:46
(
Последний раз редактировалось Dayrion; 13.07.2017 в 05:00.
)
Hey.
I wondering why I can't hook my own public (& forwarded) function.
later in another file (where y_hooks is included)..
That doesn't work. Only 1.0 is called. Any suggestions or I'm doing it wrong?
I wondering why I can't hook my own public (& forwarded) function.
PHP код:
PUBLIC:ShowFactionDialog(playerid, dialogid, bool:error)
{
if(!IsPlayerConnected(playerid))
return f_c_LOG(LOG_ERROR, "Error in the script. %i is trying to access at \"ShowFactionDialog\" but it's an invalid ID.", playerid);
print("ShowFactionDialog - 1.0");
return Y_HOOKS_CONTINUE_RETURN_1;
}
PHP код:
hook ShowFactionDialog(playerid, dialogid, bool:error)
{
print("ShowFactionDialog - 3.0");
switch(dialogid)
{
...