30.03.2009, 00:27
Well, I'm trying to open a file and display it in game, and I'm trying to find proper methods to preform such.
Here is a method I have tried, but it doesn't properly display the file's content:
If anyone knows how to properly open a file's content and display it, please do post it.
Here is a method I have tried, but it doesn't properly display the file's content:
Код:
new ForumRead[32]; new filename[] = "forum.log", File: rFile = fopen("forum.log", io_read); fread(rFile, filename, sizeof(filename)); format(ForumRead, sizeof(ForumRead), " %s ", filename); SendClientMessage(playerid, COLOR_LIGHTBLUE, ForumRead);