how to fixed this nativechecker
#5

this code anyone wrong?
pawn Код:
public AddReportToken(playerid) {
    new
        sz_FileStr[32 + MAX_PLAYER_NAME],
        sz_playerName[MAX_PLAYER_NAME],
        i_timestamp[3],
        File: fPointer;

    GetPlayerName(playerid, sz_playerName, MAX_PLAYER_NAME);
    getdate(i_timestamp[0], i_timestamp[1], i_timestamp[2]);

    format(sz_FileStr, sizeof(sz_FileStr), "admins/rtokens/%s[%d'%d'%d]", sz_playerName, i_timestamp[1], i_timestamp[2], i_timestamp[0]);
    if(fexist(sz_FileStr))
    {
        fPointer = fopen(sz_FileStr, io_read);
        fread(fPointer, sz_playerName), fclose(fPointer);

        new
            i_tokenVal = strval(sz_playerName);

        format(sz_playerName, sizeof(sz_playerName), "%i", i_tokenVal + 1);
        fPointer = fopen(sz_FileStr, io_write);
        fwrite(fPointer, sz_playerName);
        fclose(fPointer);
    }
    else {
        fPointer = fopen(sz_FileStr, io_write);
        fwrite(fPointer, "1");
    }
    return fclose(fPointer);
}
Reply


Messages In This Thread
how to fixed this nativechecker - by kurniarocki - 28.05.2014, 13:13
Re: how to fixed this nativechecker - by Misiur - 28.05.2014, 13:27
Re: how to fixed this nativechecker - by kurniarocki - 28.05.2014, 14:04
Re: how to fixed this nativechecker - by Konstantinos - 28.05.2014, 15:15
Re: how to fixed this nativechecker - by kurniarocki - 28.05.2014, 23:50
Re: how to fixed this nativechecker - by Konstantinos - 29.05.2014, 10:36

Forum Jump:


Users browsing this thread: 1 Guest(s)