[Solved]4 Errors!!!
#3

Quote:
Originally Posted by Imran.Abbas[Agent
]
try

Код:
public OnPlayerDeath(playerid, killerid, reason)
{
	SendDeathMessage(killerid, playerid, reason);
	
	if(!killerid = INVALID_PLAYER_ID);
	{
	  if(PlayerKills(playerid) >= 3 && PlayerKills[playerid] <= 14) )
      	new PlayerName[MAX_PLAYER_NAME];
				string[128];
		 		GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
		 		format(string, sizeof(string), "[Spree]%s killing spree is now over", PlayerName);
		 		SendClientMessageToAll(COLOR_YELLOW, string);
		 		GivePlayerMoney(killerid, 750);
      }
      if(PlayerKills[playerid] >= 15 && PlayerKills[playerid] <= 44) {
      	new PlayerName[MAX_PLAYER_NAME];
				string[128];
		 		GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
		 		format(string, sizeof(string), "[Spree]%s killing spree is now over", PlayerName);
		 		SendClientMessageToAll(COLOR_YELLOW, string);
		 		GivePlayerMoney(killerid, 1500);
      }
      if(PlayerKills[playerid] >= 45) {
      	new PlayerName[MAX_PLAYER_NAME];
				string[128];
		 		GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
		 		format(string, sizeof(string), "[Spree]%s killing spree is now over", PlayerName);
		 		SendClientMessageToAll(COLOR_YELLOW, string);
		 		GivePlayerMoney(killerid, 2500);
      }

        PlayerKills[playerid] = 0; //Set the murdered's kill count to 0
        PlayerKills[killerid]++; //Set the killer's kill count +1

        if(PlayerKills[killerid] == 3) {
        SendClientMessage(playerid, COLOR_YELLOW,"You are now on a killing spree!");
        new PlayerName[MAX_PLAYER_NAME];
			 	string[128];
			 	GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
			 	format(string, sizeof(string), "[Spree]%s is now on a killing spree", PlayerName);
			 	SendClientMessageToAll(COLOR_YELLOW, string);
			 	GivePlayerMoney(playerid, 450);
        }
        if(PlayerKills[killerid] == 15) {
        SendClientMessage(playerid, COLOR_YELLOW,"You have gotten 15 kills! You have received a Minigun!");
        new PlayerName[MAX_PLAYER_NAME];
			 	string[128];
			 	GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
			 	format(string, sizeof(string), "[Spree]%s has been awarded a Minigun for getting 15 kills!", PlayerName);
			 	SendClientMessageToAll(COLOR_YELLOW, string);
			 	GivePlayerWeapon(playerid, 38, 3000);
			 	GivePlayerMoney(playerid, 1500);
        }
        if(PlayerKills[killerid] == 45) {
				SendClientMessage(playerid, COLOR_YELLOW,"You have gotten 45 kills! You can now use /shop and /godcar!");
        new PlayerName[MAX_PLAYER_NAME];
			 	string[128];
			 	GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
			 	format(string, sizeof(string), "[Spree]%s has gotten 45 kills and is now able to access /godcar and /shop", PlayerName);
			 	SendClientMessageToAll(COLOR_YELLOW, string);
			 	GivePlayerMoney(playerid, 2500);
        }
	return 1;
}
Same 4 errors Really need help!
Reply


Messages In This Thread
[Solved]4 Errors!!! - by Tigerbeast11 - 12.10.2009, 20:27
Re: [SERIOUS ERRORS]4 Errors!!! - by Imran.Abbas - 12.10.2009, 20:30
Re: [SERIOUS ERRORS]4 Errors!!! - by Tigerbeast11 - 12.10.2009, 20:33
Re: [SERIOUS ERRORS]4 Errors!!! - by Eazy_Efolife - 12.10.2009, 20:33
Re: [SERIOUS ERRORS]4 Errors!!! - by Jose 510 - 12.10.2009, 20:35
Re: [SERIOUS ERRORS]4 Errors!!! - by Tigerbeast11 - 12.10.2009, 20:35
Re: [SERIOUS ERRORS]4 Errors!!! - by Peter_Corneile - 12.10.2009, 20:36
Re: [SERIOUS ERRORS]4 Errors!!! - by Tigerbeast11 - 12.10.2009, 20:37
Re: [SERIOUS ERRORS]4 Errors!!! - by Peter_Corneile - 12.10.2009, 20:38
Re: [SERIOUS ERRORS]4 Errors!!! - by Tigerbeast11 - 12.10.2009, 20:40

Forum Jump:


Users browsing this thread: 2 Guest(s)