error 033: array must be indexed (variable "iscrim")
#3

Before executing this public you should do somethong like this:
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;
}
}

than in public change
PHP код:
if(iscrim == 1){
to
if(iscrim[playerid] == 1){

and 
delete
iscrim
[Players] = 1
And it should work .
Reply


Messages In This Thread
error 033: array must be indexed (variable "iscrim") - by Dinoo - 26.03.2016, 20:32
Re: error 033: array must be indexed (variable "iscrim") - by Dinoo - 26.03.2016, 20:34
Re: error 033: array must be indexed (variable "iscrim") - by czerwony03 - 26.03.2016, 23:51

Forum Jump:


Users browsing this thread: 1 Guest(s)