22.01.2013, 17:50
I keep having issues with this callback where it just stops at an if statement and doesn't continue, I have something like:
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.
Код:
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]) { ....
I'm so frustrated, and it must be something simple I'm over looking.