DarklSide
Участник
- Сообщения
- 931
- Реакции
- 468
Что здесь не так?
/AddFileToDownloadsTable/
PHP:
public OnMapStart()
{
new Handle:file = OpenFile("cfg/down.txt", "r");
if (file == INVALID_HANDLE)
{
SetFailState("Не удалось открыть cfg/down.txt");
return;
}
decl String:path[150];
while (!IsEndOfFile(file) && ReadFileLine(file, path, 150))
{
TrimString(path);
if (IsCharAlpha(path[0])) AddFileToDownloadsTable(path);
}
CloseHandle(file);
}
/AddFileToDownloadsTable/
Последнее редактирование: