public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
new string[64]; // Create the string to store the read text in
new File:example = fopen("Startup.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;
}
return 0;
}
funktioniert nicht auch ohne return 0 gehts nicht.