OnPlayerClickPlayer isn't working - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: OnPlayerClickPlayer isn't working (
/showthread.php?tid=158043)
OnPlayerClickPlayer isn't working -
CAR - 08.07.2010
I got it exactly from wiki.sa-mp.com:
pawn Код:
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
new message[128];
format(message, 128, "You clicked on player %d", clickedplayerid);
SendClientMessage(playerid, 0xFFFFFFFF, message);
return 1;
}
Putted it in my GameMode, and in my FilterScript but when I restart my server and spawned, touched TAB and Click myself, it won't show this message. Also it won't show a Message when I add a thing like this:
pawn Код:
SendClientMessage(playerid, 0xFFFFFFFF, "clicked");
EDIT: I just tried [FS] Click PM By Epsilon and that's also not working
Re: OnPlayerClickPlayer isn't working -
CAR - 08.07.2010
Of course and compiled without errors/warnings
Re: OnPlayerClickPlayer isn't working -
Cameltoe - 08.07.2010
i'm just curious.. why did you add it to both FS and GM? add it to the fs only and debug with /rcon reloadfs FSNAME
Re: OnPlayerClickPlayer isn't working -
CAR - 08.07.2010
No I tried it with both, but it didn't work in the gamemode, then I deleted it in the gamemode and added it in the filterscript, tested it didn't work
Re: OnPlayerClickPlayer isn't working -
Cameltoe - 08.07.2010
Try to make a new gm add the code and test.. just to check if its the gm or whatever it is causing this
Re: OnPlayerClickPlayer isn't working -
CAR - 08.07.2010
I created a new Filterscript with the old pawno.exe and loaded that FS with OnPlayerClickPlayer and it worked! Now I compiled the full Filterscript where the OnPlayerClickPlayer result needs to be and it didn't work, so I got a little problem...
EDIT: I'm going to re-upload form
www.sa-mp.com because I got also another problem (Hostname not showed) but that's for a longer time
EDIT 2:It works now, thank you for helping!