Posts: 1,733
Threads: 20
Joined: Nov 2010
Reputation:
0
It's because you're getting the name of player "id" before you extracted the value from sscanf.
Move both GetPlayerName statements below sscanf.
Since "id" doesn't have a value yet, it remains 0, so you're always getting the name of playerid 0, not the one you put behind your command.
Posts: 1,679
Threads: 232
Joined: Nov 2009
Reputation:
0
ye nevermind thanks for the statement anyway i made a stock and fixed by another way thanks though!