Tplist macro function argument type: int, expected Compound

So I made a tpa datapack it all works. Now I'm trying to add tplist which just for each player sends their name + tp with run command /trigger tpa set (playerid)

execute store result storage tpa:temp playerid int 1 run scoreboard players get @s tpa.pid function tpa:tplist_msg with storage tpa:temp playerid

$tellraw @p[scores={tplist=0}] [{"text":"[$(playerid)] ","color":"#4c74c9"},{"selector":"@s","color":"#ffffff"},{text:"Teleport",color:blue,underlined:true,click_event:{action:"run_command",command:"/trigger tpa set $(playerid)"}}]

I know the @p[scores={tplist=0}] selector works because i tried it without it being a macro and it worked (tplist is -1 by default so 0 is when triggered)

Continue to help post