i want save team score
#1

guys

i want save team score in new file

example :

scriptfiles/scoreteams.ini

TEAM_COP

TEAM_ARMY

TEAM_GANG

plz help me
Reply
#2

Try to make it yourself following some tutorials.

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

im want save only team score
not score player !!

....
Reply
#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
#5

and load !!
Reply
#6

i need complete
Reply
#7

i need help guys !!!
Reply
#8

1 days not help !
Reply
#9

i need complete code i want load !!
Reply
#10

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


Forum Jump:


Users browsing this thread: 2 Guest(s)