[Fixed]Dm Scripting Errors!!!!
#2

You could just put the code under OnPlayerDeath, and it would be fine, but you could also make it work the current way you've coded it, like so.

pawn Код:
forward KillingSpree(playerid); // Change the public one too
_________________________________________________

Now simply add this to OnPlayerDeath and it will call when someone dies . You should also add checking to make sure it's a valid death and a valid killer.

pawn Код:
KillingSpree(killerid);
Note: You're also missing a closing bracket from if(GetPlayerScore(playerid) == 3) and there's no need for the ; at the end of it either.
Reply


Messages In This Thread
[Fixed]Dm Scripting Errors!!!! - by Tigerbeast11 - 10.10.2009, 15:44
Re: Dm Scripting Errors!!!! - by JaTochNietDan - 10.10.2009, 15:50
Re: Dm Scripting Errors!!!! - by Marcel - 10.10.2009, 15:51
Re: Dm Scripting Errors!!!! - by Tigerbeast11 - 10.10.2009, 15:58
Re: Dm Scripting Errors!!!! - by Tigerbeast11 - 10.10.2009, 16:14

Forum Jump:


Users browsing this thread: 1 Guest(s)