29.12.2010, 13:51
(
Последний раз редактировалось park4bmx; 30.12.2010 в 14:53.
Причина: SOLVED
)
i got a problem with this
public OnPlayerDeath(playerid, killerid, reason)
{
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
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;
}
But it doesnt go to if(Killstreak[killerid] > 2) and i dont know why