Jump to content
  • 0

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


shean

Question

D:\GM Xtr-Zone\pawno\new.pwn(23) : error 028: invalid subscript (not an array or too many subscripts): "PlayerInfo"

D:\GM Xtr-Zone\pawno\new.pwn(23) : warning 215: expression has no effect

D:\GM Xtr-Zone\pawno\new.pwn(23) : error 001: expected token: ";", but found "]"

D:\GM Xtr-Zone\pawno\new.pwn(23) : error 029: invalid expression, assumed zero

D:\GM Xtr-Zone\pawno\new.pwn(23) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

4 Errors.

[pawn]    if ((newkeys==KEY_CROUCH ))

    {

linia 23:    if(PlayerInfo[playerid][pPassPort] == 1)

{

        if(PlayerToPoint(12.0,playerid,35.581932067871, -1539.7443847656, 4.9923849105835))

            {

            if ((!adds)) {return 1;}

    SetTimer("AddsOn17", addtimer8, 0);adds = 0;

            RotateObject(vama1, 1, 0, 89, 20, 11.5);

            SetTimer("closevama1",4000,0);

            SCM(playerid, WHITE, "The barrier is now open and will be closed in 4 seconds ");

            }

        }

    }

    if ((newkeys==KEY_CROUCH ))

    {

        if(PlayerInfo[playerid][pPassPort] == 1)

      {

            if(PlayerToPoint(12.0,playerid,67.376449584961, -1524.0074462891, 4.7072782516479))

            {

            if ((!adds)) {return 1;}

    SetTimer("AddsOn18", addtimer9, 0);adds = 0;

            RotateObject(vama2, 1, 358, 89, 20, 11.5);

            SetTimer("closevama2",4000,0);

            SCM(playerid, WHITE, "The barrier is now open and will be closed in 4 seconds ");

            }

        }

    }  [/pawn]

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.