I don't have an exact code for turning Sonic into Dark Sonic in Sonic Advance 3. Some players mention using a hacking code like "sadv_paltol" to alter Sonic's appearance, but I can't vouch for its accuracy, so tinker with caution.