Cammand keep crashing the server
#6

There are better alternatives than looping 1000 times. The correct way would be i < MAX_PLAYERS and not i <= MAX_PLAYERS. However, you can replace:
pawn Код:
for (new i = 0; i <= MAX_PLAYERS; i++)
with:
pawn Код:
for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
or better yet, use foreach (y_iterate).

---

I assume you pass "u" as format specifier again in SetTimeEx for KickPlayer. Find it/these parts and replace with "d" or "i".
Reply


Messages In This Thread
Cammand keep crashing the server - by 1fret - 18.11.2017, 03:01
Re: Cammand keep crashing the server - by Konstantinos - 18.11.2017, 08:42
Re: Cammand keep crashing the server - by 1fret - 18.11.2017, 14:47
Re: Cammand keep crashing the server - by Konstantinos - 18.11.2017, 14:54
Re: Cammand keep crashing the server - by 1fret - 18.11.2017, 15:39
Re: Cammand keep crashing the server - by Konstantinos - 18.11.2017, 16:16
Re: Cammand keep crashing the server - by 1fret - 18.11.2017, 19:25
Re: Cammand keep crashing the server - by Konstantinos - 18.11.2017, 19:36
Re: Cammand keep crashing the server - by 1fret - 18.11.2017, 20:05
Re: Cammand keep crashing the server - by Konstantinos - 18.11.2017, 20:09

Forum Jump:


Users browsing this thread: 1 Guest(s)