Get playerid from listitem.
#16

https://sampforum.blast.hk/showthread.php?tid=570904


Further to the point above, "SendClientMessage" uses "playerid" NOT "pid". "OnPlayerConnect" is called when the player connects, "Response" is called when the player clicks something on the dialog (which could be many hours later if they\'re AFK). Despite this fact, you can still use "playerid" (and any other variable from the enclosing function) inside "Response" thanks to a feature called "closures".


That eliminates the need for a two dimensional array.
Reply


Messages In This Thread
Get playerid from listitem. - by CherryMond - 02.01.2019, 17:41
Re: Get playerid from listitem. - by NaS - 02.01.2019, 17:50
Re: Get playerid from listitem. - by CherryMond - 02.01.2019, 18:12
Re: Get playerid from listitem. - by RoboN1X - 03.01.2019, 03:34
Re: Get playerid from listitem. - by Kane - 03.01.2019, 08:40
Re: Get playerid from listitem. - by CherryMond - 03.01.2019, 20:27
Re: Get playerid from listitem. - by BlackBank - 03.01.2019, 22:33
Re: Get playerid from listitem. - by cessil - 03.01.2019, 23:04
Re: Get playerid from listitem. - by BlackBank - 03.01.2019, 23:11
Re: Get playerid from listitem. - by Y_Less - 04.01.2019, 00:16
Re: Get playerid from listitem. - by Threshold - 04.01.2019, 05:58
Re: Get playerid from listitem. - by cessil - 04.01.2019, 07:10
Re: Get playerid from listitem. - by Y_Less - 04.01.2019, 11:12
Re: Get playerid from listitem. - by BlackBank - 04.01.2019, 19:50
Re: Get playerid from listitem. - by CherryMond - 04.01.2019, 22:54
Re: Get playerid from listitem. - by Pottus - 05.01.2019, 04:17

Forum Jump:


Users browsing this thread: 1 Guest(s)