Callback OnPlayerClickTextDraw is not working
#1

I have 2 modules which must be called when a player clicks specific textdraw.

In the main gamemode:
PHP код:
public OnPlayerClickTextDraw(playeridText:clickedid)
{
    
printf("td: %d"_:clickedid);
    
DSchool_OnPlayerClickTD(playeridclickedid);
    return 
1;

In the first module:
PHP код:
stock DSchool_OnPlayerClickTD(playeridText:td)
{
    
printf("ds: %d"_:td);
    
DSchoolUI_OnPlayerClickTD(playeridtd);

And in the second module:
PHP код:
stock DSchoolUI_OnPlayerClickTD(playeridText:td)
{
    
printf("ui: %d"_:td);
    if(
td == TD_dschoolui_monitor[e_TD_MONITOR_BRAND_TIP])
    {
        
SendClientMessage(playerid, -1"working!");
    }

But I can't see any actions and even there have not any logs in the server log file. What can I do?

P.S.
TextDraw:
PHP код:
    TD_dschoolui_monitor[e_TD_MONITOR_BRAND_TIP] =
        
TextDrawCreate(320.0295.0"Click_here_to_unlock");
    
TextDrawFont(TD_dschoolui_monitor[e_TD_MONITOR_BRAND_TIP], 1);
    
TextDrawLetterSize(TD_dschoolui_monitor[e_TD_MONITOR_BRAND_TIP], 0.31.2);
    
TextDrawAlignment(TD_dschoolui_monitor[e_TD_MONITOR_BRAND_TIP], 2);
    
TextDrawSetShadow(TD_dschoolui_monitor[e_TD_MONITOR_BRAND_TIP], 0);
    
TextDrawSetOutline(TD_dschoolui_monitor[e_TD_MONITOR_BRAND_TIP], 0);
    
TextDrawColor(TD_dschoolui_monitor[e_TD_MONITOR_BRAND_TIP], -1111242753);
    
TextDrawUseBox(TD_dschoolui_monitor[e_TD_MONITOR_BRAND_TIP], 1);
    
TextDrawBoxColor(TD_dschoolui_monitor[e_TD_MONITOR_BRAND_TIP], 0);
    
TextDrawTextSize(TD_dschoolui_monitor[e_TD_MONITOR_BRAND_TIP], 12.088.0);
    
TextDrawSetSelectable(TD_dschoolui_monitor[e_TD_MONITOR_BRAND_TIP], 1); 
Reply


Messages In This Thread
Callback OnPlayerClickTextDraw is not working - by Geebrox - 08.05.2018, 22:07
Re: Callback OnPlayerClickTextDraw is not working - by Geebrox - 08.05.2018, 22:26

Forum Jump:


Users browsing this thread: 1 Guest(s)