Error: invalid subscript (not an array or too many subscripts): "pInfo"
#1

I've been struggling with this error now for a couple off hours and i can't seem to be finding a solution, (BTW i'm new in scripting) So i'm posting this

The error:
invalid subscript (not an array or too many subscripts): "pInfo"

Line 139 Where the error is:

if(pInfo[i][pFaction] == 2)

Full code:

public PoliceBroadcast(color,const string[],level)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(pInfo[i][pFaction] == 2)
{
SendClientMessage(i, color, string);
}
}
}
return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)