[HELP] How to check server empty?
#4

Quote:
Код:
new mycount=0;
for(new i=0; i<MAX_PLAYERS; i++)
{
    if(myonlineplayers[i]==1)
    {
        mycount++;
    }  
}
Wut? In your example myonlineplayers keep the connected players already, why did you make this loop? Its useless and it have an error already, myonlineplayers its not an array and definetly its not a per player array.
Reply


Messages In This Thread
[HELP] How to check server empty? - by Charisma - 22.07.2018, 07:21
Re: [HELP] How to check server empty? - by SyS - 22.07.2018, 07:41
Re: [HELP] How to check server empty? - by grymtn - 22.07.2018, 15:19
Re: [HELP] How to check server empty? - by Banditul18 - 22.07.2018, 18:22
Re: [HELP] How to check server empty? - by grymtn - 22.07.2018, 19:44

Forum Jump:


Users browsing this thread: 1 Guest(s)