OnPlayerDeath is not getting called
#2

Quote:
Originally Posted by MichiEXE
Посмотреть сообщение
Whether in a filterscript nor in my gamemode..
I wrote this under OnPlayerDeath:
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
	printf("1");
	PlayerTextDrawSetString(playerid, HudTd[playerid][29], "0%");
	Tot[playerid]=true;
	pInfo[playerid][survivaltime]=-1;
	SurvivalCount(playerid);
	for(new i=0; i<38; i++)
	{
		pInventar[playerid][i]=-1;
	}
	return 1;
}
Not even the "1" is "printed". Nothing happens. Same with a filterscript.
The crashdetect plugin also "printed" nothing.

All my includes i use don't use OnPlayerDeath in any way - so what is causing this?
My first thought was OnPlayerTakeDamage, so i commented it out but nothing changed.

Plugins i use: FCNPC, MapAndreas, streamer, mysql, crashdetect

Does somebody know whats going on with my gamemode or whatever is causing this?
Im not sure if this is the issue but it seems to always work:

1. make sure you have the right plugins(.dll for windows and .so for linux)

2.Make sure you have the lastest includes are downloaded and make sure you #include<> in the server at the top of the script.

3, Could you show use the server.cfg file please

N.B
As i have stated those are some simple mistakes made by other scripters so please dont rage out as i am just give you a few suggestions to check.
Reply


Messages In This Thread
OnPlayerDeath is not getting called - by MichiEXE - 23.05.2016, 18:29
Re: OnPlayerDeath is not getting called - by 1fret - 23.05.2016, 18:49
Re: OnPlayerDeath is not getting called - by MichiEXE - 23.05.2016, 18:55

Forum Jump:


Users browsing this thread: 1 Guest(s)