[Solved]Give one team money and not the other...
#6

Quote:
Originally Posted by Tigerbeast11
Quote:
Originally Posted by Redgie
My bad sorry, GetPlayerTeam[i] should be GetPlayerTeam(i)

Updated my post
Thnx, but I still get the same errors.

Here is the pastebin link...
http://pastebin.com/m3ae232a3

P.S: How can i make it check which the winning team is? Would I use a variable like
pawn Код:
new agents[MAX_PLAYERS];
?

And then when the that team wins...
pawn Код:
DisablePlayerCheckpoint(playerid);
  GivePlayerMoney(playerid,25000);
  GameTextForAll("~r~Agents Win ~n~~r~$10000",5000,0);
  agents[playerid] = 1;

Plz help me if Im wrong!
Woohoo! It compiles!

pawn Код:
for(new i = 0; i <= MAX_PLAYERS; i++)
{
  if(IsPlayerConnected(i) && GetPlayerTeam[i] == teamid)//Replace "teamid" with the variable determinning the winning team
  {
    GivePlayerMoney(i,amount);//Replace "amount" with the amount of money you want to reward each team member with
  }
  return 1;
}
Should be...

pawn Код:
for(new i = 0; i <= MAX_PLAYERS; i++)
{
  if(IsPlayerConnected(i) && GetPlayerTeam(i) == teamid)//Notice the (i) instead of [i]
  {
    GivePlayerMoney(i,amount);//Replace "amount" with the amount of money you want to reward each team member with
  }
  return 1;
}
Reply


Messages In This Thread
[Solved]Give one team money and not the other... - by Tigerbeast11 - 07.11.2009, 15:22
Re: Give one team money and not the other... - by Redgie - 07.11.2009, 15:35
Re: Give one team money and not the other... - by Tigerbeast11 - 07.11.2009, 15:41
Re: [Please Help]Give one team money and not the other... - by Redgie - 07.11.2009, 16:32
Re: [Please Help]Give one team money and not the other... - by Tigerbeast11 - 08.11.2009, 14:14
Re: [Please Help]Give one team money and not the other... - by Tigerbeast11 - 08.11.2009, 14:36

Forum Jump:


Users browsing this thread: 5 Guest(s)