14/12/2022 02:35
Façam assim, incluindo y_hooks varias vezes a cada gancho
ou assim, sempre pondo um ou mais caracteres diferentes
Código PHP:
#include <a_samp>
forward OnClickPlayerText(playerid, PlayerText:clickedid);
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
{
return CallLocalFunction("OnPlayerClickText", "dd", playerid, _:playertextid);
}
#include <YSI_Coding\y_hooks>
hook OnClickPlayerText(playerid, PlayerText:clickedid)
{
print("OnClickPlayerText: 1 hook");
}
#include <YSI_Coding\y_hooks>
hook OnClickPlayerText(playerid, PlayerText:clickedid)
{
print("OnClickPlayerText: 2 hook");
}
#include <YSI_Coding\y_hooks>
hook OnClickPlayerText(playerid, PlayerText:clickedid)
{
print("OnClickPlayerText: 3 hook");
}
#include <YSI_Coding\y_hooks>
hook OnClickPlayerText(playerid, PlayerText:clickedid)
{
print("OnClickPlayerText: 4 hook");
}
public OnClickPlayerText(playerid, PlayerText:clickedid)
{
PlayerTextDrawDestroy(playerid, clickedid);
return 1;
}
ou assim, sempre pondo um ou mais caracteres diferentes
Código PHP:
forward OnClickPlayerText(playerid, PlayerText:clickedid);
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
{
return CallLocalFunction("OnPlayerClickText", "dd", playerid, _:playertextid);
}
Hook:W_OnClickPlayerText(playerid, PlayerText:clickedid)
{
print("(W) OnClickPlayerText: 1 hook");
}
Hook:w_OnClickPlayerText(playerid, PlayerText:clickedid)
{
print("(w) OnClickPlayerText: 2 hook");
}
Hook:T_OnClickPlayerText(playerid, PlayerText:clickedid)
{
print("(T) OnClickPlayerText: 3 hook");
}
Hook:t_OnClickPlayerText(playerid, PlayerText:clickedid)
{
print("(t) OnClickPlayerText: 4 hook");
}
public OnClickPlayerText(playerid, PlayerText:clickedid)
{
PlayerTextDrawDestroy(playerid, clickedid);
return 1;
}
Seu trouxa favorito 2