• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] too resource-intensive array
#3
(2019-04-20, 05:55 AM)mr_sacrimoni Wrote: All streamed players for every player? What do you need to do with it?
?
For identify nearby players?instead checking every player
PHP Code:
for(new iMAX_PLAYERSi)
//find out how far is every player from sender for sending him a msg 
Check only streamed players (must be faster, especially when streamed 2-3 players with 500 online)
PHP Code:
foreach(StreamedPlayers[playerid], i)
// find out how far is streamed player from sender for sending him a msg 

I will use it in OnPlayerText for chat sys
[Image: aWbv5wm.gif]

  Reply


Messages In This Thread
too resource-intensive array - by Mark2 - 2019-04-19, 08:42 PM
RE: too resource-intensive array - by Mark2 - 2019-04-20, 07:19 AM
RE: too resource-intensive array - by Markski - 2019-04-20, 12:53 PM
RE: too resource-intensive array - by Y_Less - 2019-04-20, 11:05 AM
RE: too resource-intensive array - by unix - 2019-04-25, 09:47 PM

Forum Jump: