Clear death logs. - 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: Clear death logs. (
/showthread.php?tid=608592)
Clear death logs. -
VZMatt - 03.06.2016
Hi there,
How i can clear the deathlog? (I mean with a command.)
Thanks for reading
Re: Clear death logs. -
SickAttack - 03.06.2016
pawn Код:
ClearDeathList()
{
for(new i = 0; i < 5; i ++)
{
SendDeathMessage(1001, 1001, 255);
}
return 1;
}
Re: Clear death logs. -
Onfroi - 03.06.2016
SendDeathMessage(INVALID_PLAYER_ID, INVALID_PLAYER_ID, 256);
Respuesta: Re: Clear death logs. -
VZMatt - 03.06.2016
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" ''
Respuesta: Re: Clear death logs. -
Eloy - 03.06.2016
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
Respuesta: Re: Clear death logs. -
VZMatt - 03.06.2016
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..
Respuesta: Clear death logs. -
VZMatt - 03.06.2016
Someone can help me?
Re: Clear death logs. -
SickAttack - 03.06.2016
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
Respuesta: Clear death logs. -
VZMatt - 03.06.2016
oh, thank you very much