Invalid subscript error.
#1

Error:

C:\Users\Lauris\Desktop\Servas\gamemodes\bom.pwn(1 56) : error 028: invalid subscript (not an array or too many subscripts): "pInfo"
C:\Users\Lauris\Desktop\Servas\gamemodes\bom.pwn(1 56) : warning 215: expression has no effect
C:\Users\Lauris\Desktop\Servas\gamemodes\bom.pwn(1 56) : error 001: expected token: ";", but found "]"
C:\Users\Lauris\Desktop\Servas\gamemodes\bom.pwn(1 56) : error 029: invalid expression, assumed zero
C:\Users\Lauris\Desktop\Servas\gamemodes\bom.pwn(1 56) : fatal error 107: too many error messages on one line

Lines:

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp("/RR", cmdtext, true))
if(pInfo[playerid][Vip] == 1)
	{
	    for(new i; i < MAX_PLAYERS; i++)
	        {
                    if(IsPlayerConnected(i))
                    {
	                Kick(i);
                     }
  }
 }
Reply
#2

pawn Код:
if(!strcmp("/RR", cmdtext, true))
    {
        if(pInfo[playerid][Vip] == 1)
        {
            for(new i; i < MAX_PLAYERS; i++)
            {
                if(IsPlayerConnected(i))
                {
                    Kick(i);
                }
            }
        }
        return 1;
    }
Check your variable VIP.
Reply
#3

Show us you "pInfo" Enum.
Reply
#4

Fixed, thanks for help!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)