OnPlayerClickPlayer isn't working
#1

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
Reply
#2

Of course and compiled without errors/warnings
Reply
#3

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
Reply
#4

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
Reply
#5

Try to make a new gm add the code and test.. just to check if its the gm or whatever it is causing this
Reply
#6

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!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)