Need some help
#2

load it like this

pawn Код:
public OnGameModeInit()
{
    new string[64]; // Create the string to store the read text in
    new File:example = fopen("cars.txt", io_read); // Open the file
    fread(example, string); // Fread from the file and store what's read in 'string'
    fclose(example); // Close the file
    printf("%s",string); // Print what was read
    return 1;
}
Reply


Messages In This Thread
Need some help - by zombieking - 18.05.2012, 12:27
Re: Need some help - by Flake. - 18.05.2012, 12:29
Re: Need some help - by zombieking - 18.05.2012, 12:31
Re: Need some help - by milanosie - 18.05.2012, 12:35
Re: Need some help - by zombieking - 18.05.2012, 12:36
Re: Need some help - by milanosie - 18.05.2012, 12:37
Re: Need some help - by zombieking - 18.05.2012, 12:40
Re: Need some help - by Flake. - 18.05.2012, 12:40
Re: Need some help - by milanosie - 18.05.2012, 12:41
Re: Need some help - by zombieking - 18.05.2012, 12:47

Forum Jump:


Users browsing this thread: 1 Guest(s)