Problem with a string value.
#3

Here it is.
pawn Код:
public LoadRace(tmp[])
{
    new i;
    format(raceName, sizeof(raceName), "%s.yr", tmp);
   
    LCurrentCheckpoint = -1;

    new File:raceFile = fopen(raceName, io_read);
    fread(raceFile, tmp, 64);
   
    i = 0;
    while(fread(raceFile, tmp, 64, false))
    {
        LCurrentCheckpoint++;
        i = 0;

        RaceCheckpoints[LCurrentCheckpoint][0] = floatstr(strtok(tmp, i));
        RaceCheckpoints[LCurrentCheckpoint][1] = floatstr(strtok(tmp, i));
        RaceCheckpoints[LCurrentCheckpoint][2] = floatstr(strtok(tmp, i));
    }
    fclose(raceFile);
    return 1;
}
Reply


Messages In This Thread
Problem with a string value. - by Emre__ - 26.07.2012, 11:50
Re: Problem with a string value. - by Babul - 26.07.2012, 12:07
Re: Problem with a string value. - by Emre__ - 26.07.2012, 12:29
Fixxx - by arman'as - 26.07.2012, 12:44
Re: Fixxx - by Emre__ - 26.07.2012, 12:48

Forum Jump:


Users browsing this thread: 1 Guest(s)