OnPlayerDeath getting stuck at if statment
#1

I keep having issues with this callback where it just stops at an if statement and doesn't continue, I have something like:

Код:
public OnPlayerDeath(playerid, killerid, reason)
{
        print("Death1");
        if(gTeam[killerid] == TEAM_POLICE || gTeam[killerid] == TEAM_PUBLICMEDIC)
	{
	        if(gTeam[playerid] == TEAM_POLICE || gTeam[playerid] == TEAM_PUBLICMEDIC)
	        {
			SendClientMessage(playerid, COLOR_WHITE, "You Were Unfairly Killed - Continuing Previous Life.");
		}

		if(gTeam[playerid] != TEAM_POLICE && gTeam[playerid] != TEAM_PUBLICMEDIC)
		{
		         if(GetPlayerWantedLevel(playerid) < 4)
		         {
				  SendClientMessage(playerid, COLOR_WHITE, "You Were Unfairly Killed - Continuing Previous Life.");

			 }
		}
	}

        print("Death2");
        if(Authorized[playerid])
	{
                ....
It never makes it to the print "Death2".. No errors, no warnings, its not even a cop killing me, I've messed around with this for hours rewriting it and restructuring OnPlayerDeath to no avail.. So I comment the whole statement off and add some more prints in if(Authorized[playerid]), and it just ends up getting stuck on the next if statement in it.

I'm so frustrated, and it must be something simple I'm over looking.
Reply


Messages In This Thread
OnPlayerDeath getting stuck at if statment - by happyface - 22.01.2013, 17:50
Re: OnPlayerDeath getting stuck at if statment - by FUNExtreme - 22.01.2013, 17:58
Re: OnPlayerDeath getting stuck at if statment - by happyface - 22.01.2013, 18:01
Re: OnPlayerDeath getting stuck at if statment - by FUNExtreme - 22.01.2013, 18:07

Forum Jump:


Users browsing this thread: 2 Guest(s)