yippee `tis working, almost smile even when i get to zero credits i can still place ships, i have tried proc_kill to stop this function (which shows a bmap of the ship to select) and then allows you to place it on the grid, but i can`t get it to stop frown

Code:
function tile_event() 
{
	if (bmapno ==1) 
	{
	creditsf_add(-2000);
	ent_create(ship_b1, my.x, ship_function);  // create / place ship at my.x?
	}
	if (bmapno ==2)
	{
	creditsf_add(-3000);	
	ent_create(ship_b2, my.x, ship_function);  // create / place ship at my.x?
	}
	if (bmapno ==3)
	{
	creditsf_add(-500);	
	ent_create(ship_b3, my.x, ship_function);  // create / place ship at my.x?
	}
}


So the cash goes down but i still can place ships on the grid, i know i need to switch off the above function when credits == 0; but i can`t figure were to put that, everything i have tried seems to fail frown


Why does everyone like dolphins? Never trust a species which smiles all the time!