[Help] Error Yom_Buttons
#1

Hi friends of forum samp, well, i have a problem, I was doing doors panel, giving enter a panel grille opening, the include I use is yom_buttons, and filterscript which is "123" from zenon city, the problem was that the public OnPlayerPressButton does a function , I say that a function does? , Well what happens is that nothing happens to enter anything, not, as I see it is that the public wrong, please someone help me, greetings and thanks for reading!
my public is:
pawn Код:
public OnPlayerPressButton(playerid, buttonid)
{
    if(buttonid == BotonGarageSAPD)
    {
        SendClientMessage(playerid,-1,"Testing");
    }
    return 1;
}
return 1;
}
my script of the botongaragesapd is this:

in news..
pawn Код:
new BotonGarageSAPD;
In ongamemodeinit..
pawn Код:
BotonGarageSAPD = CreateButton(1582.1511,-1636.8749,14.0432, 90.0);
and the public..
pawn Код:
public OnPlayerPressButton(playerid, buttonid)
{
    if(buttonid == BotonGarageSAPD)
    {
        SendClientMessage(playerid,-1,"Probando");
    }
    return 1;
}
return 1;
}
Help please!
Thanks for reading.
Reply


Messages In This Thread
[Help] Error Yom_Buttons - by juandiegox - 21.04.2014, 21:49
Re: [Help] Error Yom_Buttons - by juandiegox - 22.04.2014, 00:25
Re: [Help] Error Yom_Buttons - by juandiegox - 22.04.2014, 21:29
Re: [Help] Error Yom_Buttons - by NoahF - 22.04.2014, 22:55
Re: [Help] Error Yom_Buttons - by itsCody - 22.04.2014, 23:00
Re: [Help] Error Yom_Buttons - by NoahF - 22.04.2014, 23:03
Re: [Help] Error Yom_Buttons - by juandiegox - 22.04.2014, 23:21
Re: [Help] Error Yom_Buttons - by itsCody - 22.04.2014, 23:24
Re: [Help] Error Yom_Buttons - by juandiegox - 22.04.2014, 23:28
Re: [Help] Error Yom_Buttons - by juandiegox - 22.04.2014, 23:58

Forum Jump:


Users browsing this thread: 1 Guest(s)