i tried this one now:

Code:
if ((SelectionTexture != NULL) && (bmap_width(SelectionTexture) > 0) && (bmap_height(SelectionTexture) > 0))
	{
		var LMode = bmap_lock(SelectionTexture, 0);
		if (LMode > 0)
		{
			var LPixel = pixel_for_vec(vector(255, 0, 0), 50, LMode);
			pixel_to_bmap(0, 0, SelectionTexture, LPixel);
			
			bmap_unlock(SelectionTexture);
		}
	}



and it crashed


MY Website with news of my projects:
(for example my current
Muliplayer Bomberman,
GenesisPrecompiler for LiteC
and TileMaster, an easy to use Tile editor)
Sparetime-Development