How do I get Playername with an player id?

Posted by WolfCoderz

argument1 is the player id(from p2p script)
i use:

playerid = argument1;

but the message always return " "(blank)

Replies (2)

Last message on 18 Nov 2019

Size43 (Administrator) on 17 Nov 2019, 18:07:13
When receiving a P2P message, all arguments are always pushed into a single ds_list.

So you'll need to read it like this:

show_message(gms_other_get(ds_list_find_value(argument1, 0),"name"))
WolfCoderz (Topicstarter) on 18 Nov 2019, 00:04:47
Wow thx