Help with P2P

Posted by Freeko
Hi guys!
I have a question about gms_script_set_p2p(script)

At receive a message of other player, the script reads the data sent.

argument0: id
argument1: sender player_id
argument2: a ds_list with the arguments

How I can read the arguments of the ds_list in argument2?? With arrays? argument2[1]??

Please I need help. Thanks :)

Replies (2)

Last message on 15 Aug 2016

Size43 (Administrator) on 10 Aug 2016, 20:39:02
Use ds_list_find_value(list, index). You can also use the shorthand notation introduced in GM:Studio

Please see https://docs.yoyogames.com/source/dadiospice/002_reference/data%20structures/ds%20lists/index.html
HatFox_ on 15 Aug 2016, 18:37:32
Oh thank you so much!!!
I used "ds_list_find_value(argument2,0)"