SA-MP Forums Archive
Death and suicide array doesn't work. Please help me.;( - 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: Death and suicide array doesn't work. Please help me.;( (/showthread.php?tid=310881)



Don't need this anymore - liinor - 14.01.2012

Don't need this anymore


Re: Death and suicide array doesn't work. Please help me.;( - Mean - 14.01.2012

I can't read this code properly, could you please use [pawn] tags?


Re: Death and suicide array doesn't work. Please help me.;( - liinor - 14.01.2012

[pawn] tags? wtf?


Re: Death and suicide array doesn't work. Please help me.;( - mineralo - 14.01.2012

use pawn at begin text in [] and /pawn in [] at end text


Re: Death and suicide array doesn't work. Please help me.;( - Mean - 14.01.2012

Quote:
Originally Posted by liinor
Посмотреть сообщение
[pawn] tags? wtf?
Like this:
pawn Код:
PAWN code
Quote my post to see what I've done.


Don't need. - liinor - 14.01.2012

Don't need anymore


Re: Death and suicide array doesn't work. Please help me.;( - Mean - 14.01.2012

Okay, that's better. Can I see how are you defining the array?


Re: Death and suicide array doesn't work. Please help me.;( - Vince - 14.01.2012

pawn Код:
if(playerid == killerid)
    {
    Suicides[playerid]++;
    ResetPlayerMoney(playerid);
    }
Does not work. If a player suicides, the killerid is INVALID_PLAYER_ID.


Re: Death and suicide array doesn't work. Please help me.;( - liinor - 14.01.2012

Quote:
Originally Posted by Vince
Посмотреть сообщение
pawn Код:
if(playerid == killerid)
    {
    Suicides[playerid]++;
    ResetPlayerMoney(playerid);
    }
Does not work. If a player suicides, the killerid is INVALID_PLAYER_ID.
It didn't work.