dini problem
#2

Just replace to:
pawn Код:
if(pickupid == driverpickupspawn)
    {
        new Dstat[128];
        new name[MAX_PLAYER_NAME], string[500];
        GetPlayerName(playerid, name, sizeof(name));
        format(Dstat,sizeof(Dstat),"/spelers/%s.ini",name);

        if(!fexist(Dstat))
        {
            dini_Create(Dstat);
            dini_IntSet(Dstat,"Driver", 0);

            format(string, sizeof(string), "Joined this team already: %d times!",pInfo[playerid][pDrivJoins]);
            SendClientMessage(playerid, COLOR_YELLOW, string);
        }
        else
        {
            pInfo[playerid][pDrivJoins] = dini_Int(Dstat, "Driver");
            dini_IntSet(Dstat,"Driver", pInfo[playerid][pDrivJoins]++);

            format(string, sizeof(string), "Joined this team already: %d times!",pInfo[playerid][pDrivJoins]);
            SendClientMessage(playerid, COLOR_YELLOW, string);
        }
Your system looks work fine.
Reply


Messages In This Thread
dini problem - by knackworst - 07.10.2011, 17:36
Re: dini problem - by CyNiC - 07.10.2011, 17:45
Re: dini problem - by knackworst - 07.10.2011, 17:46
Re: dini problem - by CyNiC - 07.10.2011, 17:48
Re: dini problem - by knackworst - 07.10.2011, 17:50
Re: dini problem - by CyNiC - 07.10.2011, 17:52
Re: dini problem - by knackworst - 07.10.2011, 17:53
Re: dini problem - by CyNiC - 07.10.2011, 18:06
Re: dini problem - by knackworst - 07.10.2011, 18:24

Forum Jump:


Users browsing this thread: 1 Guest(s)