SA-MP Forums Archive
Why doesn't "SendDeathMessage(playerid,INVALID_PLAYER_ID,200); " work on some.. - 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: Why doesn't "SendDeathMessage(playerid,INVALID_PLAYER_ID,200); " work on some.. (/showthread.php?tid=100719)



Why doesn't "SendDeathMessage(playerid,INVALID_PLAYER_ID,200); " work on some.. - _Vortex - 06.10.2009

.. scripts? Is it known yet?

It's strange how it could work on one script, but not another.

Any ideas?


Re: Why doesn't "SendDeathMessage(playerid,INVALID_PLAYER_ID,200); " work on some.. - HuRRiCaNe - 06.10.2009

SendDeathMessage(killerid,playerid,reason);
This is how it works.


Re: Why doesn't "SendDeathMessage(playerid,INVALID_PLAYER_ID,200); " work on some.. - _Vortex - 06.10.2009

Quote:
Originally Posted by BiG_Sm0k3
SendDeathMessage(killerid,playerid,reason);
This is how it works.
Lol, no. Please learn what you're talking about before you go talking about random stuff.

I'm talking about the disconnect/connect icons.


Re: Why doesn't "SendDeathMessage(playerid,INVALID_PLAYER_ID,200); " work on some.. - HuRRiCaNe - 07.10.2009

I know what are you talking about, you made it wrong:
On disconnect function is:
SendDeathMessage(INVALID_PLAYER_ID,playerid,200)
The invalid is the killer because there is no killer, the player id is the player taht disconnects and 200 is the reason.


Re: Why doesn't "SendDeathMessage(playerid,INVALID_PLAYER_ID,200); " work on some.. - Danny_Costelo - 07.10.2009

What do you mean it works on some scripts and not the other?... It works on all scripts, your most likely doing something wrong.


Re: Why doesn't "SendDeathMessage(playerid,INVALID_PLAYER_ID,2 00); " work on some.. - [WSF]ThA_Devil - 11.10.2010

just add
Code:
;
the script needs to end function!
code here:
pawn Code:
SendDeathMessage(INVALID_PLAYER_ID,playerid,200);//it works! i have tried! ;)
ye it rly works!


Re: Why doesn't "SendDeathMessage(playerid,INVALID_PLAYER_ID,2 00); " work on some.. - ColdXX - 11.10.2010

Nevermind lol!


Re: Why doesn't "SendDeathMessage(playerid,INVALID_PLAYER_ID,2 00); " work on some.. - [WSF]ThA_Devil - 11.10.2010

does that work?