Hello,

I have detect an error on an example reactiontest. When the number five appear et when I press the key five an error appear Malfunction W1501 Empty pointer in main and Error E1513 Script crash in main.

I have test my project and this code does not work. In the other version it works well.

Code:
// fonction inkey write by djfeeler

#include <acknex.h>
#include <default.c>

FONT* arial_font = "Arial#20b";

STRING* GV_str_letter = "";

TEXT* Txt_temp = {strings = 20;}

TEXT* Txt_write = // appears over input_pan
{
	layer = 30;
	pos_x = 30;
	pos_y = 10;
	font(arial_font);
	string(GV_str_letter);
	flags = SHOW;
}

function F_write_text()
{
	str_cpy(GV_str_letter, "#20"); // The error is here the #20 does not work.
	set(Txt_write,SHOW); // display the text write
	inkey(GV_str_letter); // retrieves the letters typed
	str_cpy((Txt_temp.pstring)[0], GV_str_letter);
}

function main()
{
	video_set(800,600,0,2);
	F_write_text();
}



#20 appears and I can write three letters.

Djfeeler

Last edited by djfeeler; 10/24/11 12:20.