Array must be indexed error
#1

i get a weird error if someone will help me he will get reped +1

here is my code
pawn Код:
public ServerOneSecondVariables()
{
    //City Hall robbed recently
    if(CityHallWasRobbedRecently >= 1)
    {
       CityHallWasRobbedRecently --;
    }
    return 1;
}

here is my error
pawn Код:
C:\Users\TOSHIBANET\Documents\Photoshop Documents\TeamDeathMatch\gamemodes\CNR.pwn(3279) : error 033: array must be indexed (variable "CityHallWasRobbedRecently")
C:\Users\TOSHIBANET\Documents\Photoshop Documents\TeamDeathMatch\gamemodes\CNR.pwn(3281) : error 022: must be lvalue (non-constant)
C:\Users\TOSHIBANET\Documents\Photoshop Documents\TeamDeathMatch\gamemodes\CNR.pwn(3281) : warning 215: expression has no effect
Reply


Messages In This Thread
Array must be indexed error - by DarkLored - 25.11.2013, 02:34
Re: Array must be indexed error - by VenomXNL - 25.11.2013, 03:27
Re: Array must be indexed error - by CoaPsyFactor - 25.11.2013, 08:53
Re: Array must be indexed error - by DarkLored - 25.11.2013, 18:45

Forum Jump:


Users browsing this thread: 1 Guest(s)