i want save team score
#4

pawn Код:
#define MAX_TEAMS 3 //change to your desires

enum tInfo
{
    TeamName[32], //name of team
    TeamScore//the teams current score
}
new Teams[MAX_TEAMS][tInfo] =
{
{"TEAM_COP",0},
{"TEAM_ARMY",0},
{"TEAM_GANG",0}
};

SaveTeamStats() //to save everything in scoreteams.ini
{
    new File:fhandle;
    new temp[256];

    fhandle = fopen("scoreteams.ini",io_append);
    format(temp, sizeof(temp), "%s: %d\r\n%s: %d\r\n%s: %d",
    Teams[0][TeamName],Teams[0][TeamScore],Teams[1][TeamName],Teams[1][TeamScore],Teams[2][TeamName],Teams[2][TeamScore]);
    fwrite(fhandle,temp);
    fclose(fhandle);
}
Reply


Messages In This Thread
system load for team score - by khalildz - 13.07.2013, 17:02
Re: i want save team score - by Cypress - 13.07.2013, 17:44
Re: i want save team score - by khalildz - 13.07.2013, 22:05
AW: i want save team score - by Macronix - 14.07.2013, 00:28
Re: i want save team score - by khalildz - 14.07.2013, 15:02
Re: i want save team score - by khalildz - 14.07.2013, 15:57
Re: i want save team score - by khalildz - 14.07.2013, 18:29
Re: i want save team score - by khalildz - 15.07.2013, 15:17
Re: i want save team score - by khalildz - 17.07.2013, 17:14
Re: i want save team score - by gtakillerIV - 17.07.2013, 18:46

Forum Jump:


Users browsing this thread: 1 Guest(s)