Hi!

Quote
Warning W1501: Empty Pointer

You are using a pointer that was not initialized or does not point to any valid object. Typical beginner's mistakes are using an entity pointer before it was set up in another action, or after it became invalid due to removing the entity.

Originally Posted by Aku_Aku
Code
if(NULL == (text_lines->pstring)[line_number])
I can't really imagine what could cause that message... Maybe your 'line_numer' is out of the range?
txt_create automatically creates empty strings, so if you are in range (0...99) it should be no empty pointer message.

Here how it works for me
Code
#define PRAGMA_POINTER

void main()
{
	TEXT *text_lines = txt_create(100, 0);
	
	var line_number = 0;
	str_cpy((text_lines->pstring)[line_number], "Hello world");
	
	while(!key_esc)
	{
		draw_text((text_lines->pstring)[line_number], 10, 10, COLOR_WHITE);
		
		// check if second string is empty ?
		if(str_len((text_lines->pstring)[1]) <= 0)
		{
			draw_text("Empty string!", 10, 30, COLOR_WHITE);
		}
		
		wait(1);
	}
}


Greets!


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung