SA-MP Forums Archive
i want save team score - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: i want save team score (/showthread.php?tid=450523)



system load for team score - khalildz - 13.07.2013

guys

i want save team score in new file

example :

scriptfiles/scoreteams.ini

TEAM_COP

TEAM_ARMY

TEAM_GANG

plz help me


Re: i want save team score - Cypress - 13.07.2013

Try to make it yourself following some tutorials.

Here is one: https://sampforum.blast.hk/showthread.php?tid=234691


Re: i want save team score - khalildz - 13.07.2013

im want save only team score
not score player !!

....


AW: i want save team score - Macronix - 14.07.2013

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);
}



Re: i want save team score - khalildz - 14.07.2013

and load !!


Re: i want save team score - khalildz - 14.07.2013

i need complete


Re: i want save team score - khalildz - 14.07.2013

i need help guys !!!


Re: i want save team score - khalildz - 15.07.2013

1 days not help !


Re: i want save team score - khalildz - 17.07.2013

i need complete code i want load !!


Re: i want save team score - gtakillerIV - 17.07.2013

Learn by yourself, else don't bother. There are tutorials everywhere in this forum.