[AllLookAtThis] count the money of a team
#9

Now i have the command:

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{

    //LEADING TEAM COMMAND//////////////
    if (strcmp("/lolled", cmdtext, true, 10) == 0)
    {
        new team1cash;
        new team2cash;

        for(new i = 1; i < MAX_PLAYERS; i++)
        {
            if( GetPlayerTeam( i ) == 1 ) // or other team checking
            {
            team1cash = team1cash+GetPlayerMoney(i);
            }
            if( GetPlayerTeam( i ) == 2 ) // or other team checking
            {
            team2cash = team2cash+GetPlayerMoney(i);
            }
        }
        if( team1cash > team2cash )
        {
        new string[128];
        format(string,sizeof(string),"The Grove team is leading with %s Money",team1cash);
        SendClientMessageToAll(GetPlayerColor(playerid),string);
        }
        if( team2cash > team1cash )
        {
        new string[128];
        format(string,sizeof(string),"The Balla team is leading with %s Money",team2cash);
        SendClientMessageToAll(GetPlayerColor(playerid),string);
      }
    }
    return 0;
}
But nothing happens it says unknown command did i do wrong?
Reply


Messages In This Thread
[AllLookAtThis] count the money of a team - by Fonsie - 11.03.2010, 16:24
Re: count the money of a team - by Fonsie - 11.03.2010, 16:43
Re: count the money of a team - by armyoftwo - 11.03.2010, 16:45
Re: count the money of a team - by kLx - 11.03.2010, 16:45
Re: count the money of a team - by Fonsie - 11.03.2010, 16:47
Re: count the money of a team - by Fonsie - 11.03.2010, 16:50
Re: count the money of a team - by kLx - 11.03.2010, 16:51
Re: count the money of a team - by Fonsie - 11.03.2010, 17:00
Re: count the money of a team - by Fonsie - 11.03.2010, 17:45
Re: count the money of a team - by kLx - 11.03.2010, 18:38

Forum Jump:


Users browsing this thread: 1 Guest(s)