16.08.2014, 05:04
Como faзo para meu gamemode carregar as propriedades .txt que vem na pasta scriptfiles do server samp?
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;
}