killstreak
#1

i got a problem with this
public OnPlayerDeath(playerid, killerid, reason)
{
pawn Код:
if(Killstreak[killerid] > 1){
SetPlayerScore(killerid,GetPlayerScore(killerid)+2);
//Script//
Killstreak[killerid] ++;
return 1;
}
if(Killstreak[killerid] > 2){
print("Killstreak=2");
SetPlayerScore(killerid,GetPlayerScore(killerid)+2);
ResetPlayerWeapons(killerid);
GivePlayerWeapon(killerid, 27, 4);
//script//
Killstreak[killerid]++;
return 1;
}
The problem is that when the player dies he goes to if(Killstreak[killerid] > 1)
But it doesnt go to if(Killstreak[killerid] > 2) and i dont know why
Reply


Messages In This Thread
killstreak [SOLVED] - by park4bmx - 29.12.2010, 13:51
Re: killstreak - by MadeMan - 29.12.2010, 13:57
Re: killstreak - by park4bmx - 29.12.2010, 17:41
Re: killstreak - by Marricio - 29.12.2010, 18:02
Re: killstreak - by park4bmx - 30.12.2010, 11:01
Re: killstreak - by Lorenc_ - 30.12.2010, 12:01
Re: killstreak - by Macluawn - 30.12.2010, 12:07
Re: killstreak - by park4bmx - 30.12.2010, 14:01
Re: killstreak - by _rAped - 30.12.2010, 14:03
Re: killstreak - by [NWA]Hannes - 30.12.2010, 14:20

Forum Jump:


Users browsing this thread: 4 Guest(s)