Detecting Explosions - - 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)
+--- Thread: Detecting Explosions - (
/showthread.php?tid=321750)
Detecting Explosions - -
Kyle - 28.02.2012
Hi, To detect explosions I do this in my onplayerdeath:
Код:
if(reason == 51 && !IsPlayerConnected(killerid)
{
// the player died NO KILLER FOUND
}
else
{
// THE KILLER ID IS FOUND FOR THE EXPLOSIVES
}
But the else statement never gets entered - like it could not find the killer id. Why :/
Thanks
Re: Detecting Explosions - -
KingHual - 28.02.2012
you are missing a bracket after isplayerconnected lol
Re: Detecting Explosions - - T0pAz - 28.02.2012
Quote:
Originally Posted by king_hual
you are missing a bracket after isplayerconnected lol
|
I think he only made an example.