21.04.2014, 21:49
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:
my script of the botongaragesapd is this:
in news..
In ongamemodeinit..
and the public..
Help please!
Thanks for reading.
my public is:
pawn Код:
public OnPlayerPressButton(playerid, buttonid)
{
if(buttonid == BotonGarageSAPD)
{
SendClientMessage(playerid,-1,"Testing");
}
return 1;
}
return 1;
}
in news..
pawn Код:
new BotonGarageSAPD;
pawn Код:
BotonGarageSAPD = CreateButton(1582.1511,-1636.8749,14.0432, 90.0);
pawn Код:
public OnPlayerPressButton(playerid, buttonid)
{
if(buttonid == BotonGarageSAPD)
{
SendClientMessage(playerid,-1,"Probando");
}
return 1;
}
return 1;
}
Thanks for reading.