Help /admins command unknown command
#2

Array indexes start at 0 and so player IDs. "i" needs to be 0 instead of -1.

And you keep calling GetPlayerPoolSize function, store it to a variable:
pawn Код:
for (new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
The length on strcmp would be 7 but you can remove it completely as well.
Reply


Messages In This Thread
Help /admins command unknown command - by alekschowee - 30.06.2016, 12:28
Re: Help /admins command unknown command - by Konstantinos - 30.06.2016, 12:33
Re: Help /admins command unknown command - by CodeStyle175 - 30.06.2016, 12:38
Re: Help /admins command unknown command - by alekschowee - 30.06.2016, 12:38
Re: Help /admins command unknown command - by Owen007 - 30.06.2016, 12:44
Re: Help /admins command unknown command - by alekschowee - 30.06.2016, 12:48
Re: Help /admins command unknown command - by alekschowee - 30.06.2016, 12:50
Re: Help /admins command unknown command - by alekschowee - 30.06.2016, 13:09
Re: Help /admins command unknown command - by jlalt - 30.06.2016, 13:12
Re: Help /admins command unknown command - by alekschowee - 30.06.2016, 13:33

Forum Jump:


Users browsing this thread: 2 Guest(s)