Posts: 534
Threads: 265
Joined: Jul 2014
Can i do that?
Код:
foreach(new i : Player)
{
// BLABLBA
for(new a = 0; a < MAX_PLAYERS; a ++)
{
//BLABLA
}
}
Posts: 344
Threads: 12
Joined: Sep 2010
Reputation:
0
WHY WOULD YOU DO THAT? Please before using some code check documentation which explains how and why it is used.
foreach(new i : Player) will loop every single connected player and store id in i. The thing you're doing is nonsense you're doing exactly the same(inefficient) thing inside that loop?
Posts: 534
Threads: 265
Joined: Jul 2014
I don't care it'is have sense or no, but server no crash from it?
Posts: 344
Threads: 12
Joined: Sep 2010
Reputation:
0
Server should not crash but it's absurd to have something like that.