"error 033: array must be indexed" Please help!
#1

Hey, just trying to test a temp ban I made. But I get these errors

Код:
C:\DOCUME~1\DANNY~1.YOU\MYDOCU~1\LOSSAN~2\GAMEMO~1\Testing.pwn(827) : error 029: invalid expression, assumed zero
C:\DOCUME~1\DANNY~1.YOU\MYDOCU~1\LOSSAN~2\GAMEMO~1\Testing.pwn(2057) : error 033: array must be indexed (variable "days")
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Line 872 - 874:


Код:
 	if( gTeam[ playerid ] == TEAM_CIV_RAPIST )
	{
	    gTeam[ playerid ] = TEAM_CIV;
	}
Line 2056 - 2057:

Код:
new
	    days2 = ( days * 86400 );
Please help!
Reply
#2

Show the first "days" variable..
Reply
#3

Quote:
Originally Posted by CrossOv3r
Посмотреть сообщение
Show the first "days" variable..
Oopsy silly me, I added [128] to my days variable. But I still have dis error:

Код:
C:\DOCUME~1\DANNY~1.YOU\MYDOCU~1\LOSSAN~2\GAMEMO~1\Testing.pwn(827) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
And I left a / at line 827!
Reply
#4

as i can see here you only did gTeam[ playerid ] = TEAM_CIV; that should be gTeam[ playerid ] == TEAM_CIV;

Fixed Code
pawn Код:
if( gTeam[ playerid ] == TEAM_CIV_RAPIST )
    {
        gTeam[ playerid ] == TEAM_CIV;
    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)