Hey folks! I have a problem that are kiling my brain! It's really simple, load the contents of the file that i call teste.txt and it's in the same folder of the Script .c ...

Just when i start the aplicattion, this appears:


This is the contents of teste.txt:
Code:
0001: Aqui é o meu lugar pai!
0002: Não me obrigue a fazer isso filho!
0003: NÃO PAI!!!
0004: HAHAHA!!!
// Não é para lêr esta linha!!!
0005: NÃOOO!!!
0006: BOOM!!!
0007: (Silêncio)



Well, i will create a function to locate the strings in the file and use in the subtitles in the game...

But this f*&% error in file_str_read appear on the screen and says the 2° argument is wrong: STRING!

Here is the .c file:
Code:
#include <acknex.h>
#include <default.c>

STRING* Legenda;

var a;
var b;

function main()
{
	a = file_open_game("teste.txt");
	b = file_find(a, "0003:");
	file_str_read(b, Legenda);
	file_close(a);
	draw_text(Legenda, 10, 10, vector(0, 0, 120));
}



I really need this to continue the game! PLZ, help!