Clear death logs.
#1

Hi there,

How i can clear the deathlog? (I mean with a command.)

Thanks for reading
Reply
#2

pawn Код:
ClearDeathList()
{
    for(new i = 0; i < 5; i ++)
    {
        SendDeathMessage(1001, 1001, 255);
    }
    return 1;
}
Reply
#3

SendDeathMessage(INVALID_PLAYER_ID, INVALID_PLAYER_ID, 256);
Reply
#4

Quote:
Originally Posted by SickAttack
Посмотреть сообщение
pawn Код:
ClearDeathList()
{
    for(new i = 0; i < 5; i ++)
    {
        SendDeathMessage(1001, 1001, 255);
    }
    return 1;
}
I got an error:

'' C:\Users\Matt\SAMP\MyServer\filterscripts\ladmin.p wn(8981) : warning 203: symbol is never used: "ClearDeathList" ''
Reply
#5

Quote:
Originally Posted by VZMatt
Посмотреть сообщение
I got an error:

'' C:\Users\Matt\SAMP\MyServer\filterscripts\ladmin.p wn(8981) : warning 203: symbol is never used: "ClearDeathList" ''
First need create a stock before used functions -.-

sorry my bad english
Reply
#6

Quote:
Originally Posted by Eloy
Посмотреть сообщение
First need create a stock before used functions -.-

sorry my bad english
You can help me?

btw, I'm not pro at scripting..
Reply
#7

Someone can help me?
Reply
#8

Quote:
Originally Posted by Onfroi
Посмотреть сообщение
SendDeathMessage(INVALID_PLAYER_ID, INVALID_PLAYER_ID, 256);
It doesn't work like that.

-----------------------------------------------------------------------------

pawn Код:
#include <zcmd>

CMD:cleardeathlist(playerid, params[])
{
    ClearDeathList();
    return 1;
}

ClearDeathList()
{
    for(new i = 0; i < 5; i ++)
    {
        SendDeathMessage(1001, 1001, 255);
    }
    return 1;
}
You need the include "zcmd": https://sampforum.blast.hk/showthread.php?tid=91354
Reply
#9

oh, thank you very much
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)