SA-MP Forums Archive
yom_buttons [include] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: yom_buttons [include] (/showthread.php?tid=433624)



yom_buttons [include] - Phuong - 28.04.2013

I use createbutton in OnGameModeInit (), but the server does not see. Help me.....


Re: yom_buttons [include] - [HK]Ryder[AN] - 28.04.2013

what do you think we are?
Show us the code.


Re: yom_buttons [include] - Phuong - 28.04.2013

Quote:

public OnGameModeInit()
{
CreateButton(244.92, 72.29, 1004.27, 0.0);
}
public OnPlayerPressButton(playerid, buttonid)
{
if(buttonid == 1)
{
SendClientMessage(playerid, COLOR_GREY, "TEST.");
return 1;
}
}

code.


Re: yom_buttons [include] - Phuong - 28.04.2013

Help me!