[Ajuda] Como carregar arquivos txt
#1

Como faзo para meu gamemode carregar as propriedades .txt que vem na pasta scriptfiles do server samp?
Reply
#2

Use a funзгo fread.

pawn Код:
public OnGameModeInit()
{
    new string[64]; // Create the string to store the read text in
    new File:example = fopen("Startup.txt", io_read); // Open the file
    if(example) // If it opened successfully
    {
        fread(example, string); // Read a line from the file and store it in 'string'
        fclose(example); // Close the file
        print(string); // Print what was read
    }
    return 1;
}
Mas o que vocк exatamente quer ler ?
Reply
#3

filterscripts/gl_property.amx

й o FS para Rodar esses arquivos.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)