Yoiu idiot, you probably confused him more then need be!
attachplayertoobj id,type;
you can leave the id as just that if you wanna attach the player to the current npc. The type will always be 1 unless Stefan adds another one (Maybe attaching to players?)