Please help!!
#10

Quote:
Originally Posted by GrimR
Посмотреть сообщение
The problem is with:

pawn Код:
for(new p = 0; p < MAX_PLAYERS; p++)
            {
                if(IsPlayerConnected(p))
                {
                    PlayerPlaySound(p,1140,0.0,0.0,0.0);
                    Kick(killerid);
                }
            }
If players start from 0 ID, I would assume your max players is set 1 too high, so you either need to lower max players by 1 or in loops put MAX_PLAYERS-1.
pawn Код:
for(new p = -1; p < MAX_PLAYERS; p++)
            {
                if(IsPlayerConnected(p))
                {
                    PlayerPlaySound(p,1140,0.0,0.0,0.0);
                    Kick(killerid);
                }
            }
?
Reply


Messages In This Thread
Please help!! - by RcoN! - 10.10.2011, 20:14
Respuesta: Please help!! - by matias1994 - 10.10.2011, 20:21
Re: Please help!! - by Dripac - 10.10.2011, 20:21
Re: Please help!! - by grand.Theft.Otto - 10.10.2011, 20:24
Re: Please help!! - by Joe Staff - 10.10.2011, 20:25
Respuesta: Please help!! - by RcoN! - 10.10.2011, 20:25
Re: Please help!! - by GrimR - 10.10.2011, 20:46
Respuesta: Please help!! - by RcoN! - 10.10.2011, 21:03
Re: Please help!! - by GrimR - 10.10.2011, 21:10
Respuesta: Re: Please help!! - by RcoN! - 10.10.2011, 21:13

Forum Jump:


Users browsing this thread: 4 Guest(s)