You can do this even easier:
 Code:
if (!inkey_active)
{
  if (inkey(sPlayerName) == 13) 
  {
    beep; // So you can see if enter is terminating...
    iSetName 	= 0;
    iPlayGame 	= 1;
  }
}
Other than that I don't see no reason why this shouldn't work...


Always learn from history, to be sure you make the same mistakes again...