26.03.2016, 23:51
Before executing this public you should do somethong like this:
than in public change
And it should work .
PHP код:
for(new i=0;i<MAX_PLAYERS;i++)
{
iscrim[i]=0;
}
if(Players>0)
{
new setcrim=0,cridrandom;
while()
{
cridrandom=random(Players);
if(IsPlayerConnected(cridrandom))
{
iscrim[cridrandom]=1;
break;
}
}
}
PHP код:
if(iscrim == 1){
to
if(iscrim[playerid] == 1){
and delete
iscrim[Players] = 1;