ERROR 28 ?
#1

error 028: invalid subscript (not an array or too many subscripts)

First time see this , what are possible solution for this error?

Quote:

stock comand1() // this work
{
//some code
}
stock comand2()
{
//some code //this work
comand1();//error 028
}

i try to change but same error

Quote:

stock comand1() // this work
{
//some code
}
stock comand2()//this work
{
//some code
}

//Public OnPlayer
public OnPlayerCommandText(playerid,cmdtext[])
{
if(!strcmp(cmdtext,"/mycommand",true))
{
comand1();
comand2();//error 028

return 1;
}
return 0;
}


and i try this and it make no sense

Quote:

stock comand1() // this work
{
//some code
}
stock comand2()//this work
{
//some code
}

//Public OnPlayer
public OnPlayerCommandText(playerid,cmdtext[])
{
if(!strcmp(cmdtext,"/mycommand",true))
{
comand2();
comand1(); //error 028

return 1;
}
return 0;
}

Did i extend limit of stock func ?? Is there a limit of maximum stock func ?
Reply


Messages In This Thread
ERROR 28 ? - by Azazelo - 26.05.2012, 03:47
Re: ERROR 28 ? - by Azazelo - 26.05.2012, 04:06
Re: ERROR 28 ? - by JaTochNietDan - 26.05.2012, 04:06
Re: ERROR 28 ? - by Azazelo - 26.05.2012, 04:15

Forum Jump:


Users browsing this thread: 3 Guest(s)