[HowTo] 1 Kill = 500$ Bounty
#4

Quote:
Originally Posted by [P7
Pixels^ ]Arrays are all you need.
pawn Code:
new BountyArray[MAX_PLAYERS];
pawn Code:
public OnPlayerDeath(playerid,killerid,reason)
{
  BountyArray[killerid]+=500;
  return 1;
}
1) You don't need return 1; at the bottom of that callback as it is called AFTER a player has died, so would never have any effect.
2) You do know that if there isn't a killer, i.e the player fell from a cliff or drowned, then the killerid will return 255; which as far as i can see will exceed you cell value of 200 (1-199) by 56.
3) Not really a big deal but if he has a server of only say 13 player slots then MAX_PLAYERS ( 200 ) seems pretty pointless.
Reply


Messages In This Thread
[HowTo] 1 Kill = 500$ Bounty - by cmg4life - 28.12.2007, 19:01
Re: [HowTo] 1 Kill = 500$ Bounty - by BeckzyBoi - 28.12.2007, 19:07
Re: [HowTo] 1 Kill = 500$ Bounty - by Pixels^ - 28.12.2007, 19:07
Re: [HowTo] 1 Kill = 500$ Bounty - by BeckzyBoi - 28.12.2007, 19:13
Re: [HowTo] 1 Kill = 500$ Bounty - by RobbyMeist3r - 28.12.2007, 19:31
Re: [HowTo] 1 Kill = 500$ Bounty - by cmg4life - 28.12.2007, 19:35
Re: [HowTo] 1 Kill = 500$ Bounty - by BeckzyBoi - 28.12.2007, 19:48
Re: [HowTo] 1 Kill = 500$ Bounty - by cmg4life - 28.12.2007, 19:49
Re: [HowTo] 1 Kill = 500$ Bounty - by RobbyMeist3r - 28.12.2007, 19:58
Re: [HowTo] 1 Kill = 500$ Bounty - by BeckzyBoi - 28.12.2007, 20:04

Forum Jump:


Users browsing this thread: 1 Guest(s)