Error and Warning !
#1

C:\GTA - San Andreas\Server\gamemodes\Rp11Back.pwn(1489) : error 008: must be a constant expression; assumed zero
C:\GTA - San Andreas\Server\gamemodes\Rp11Back.pwn(10781) : warning 219: local variable "i" shadows a variable at a preceding level
C:\GTA - San Andreas\Server\gamemodes\Rp11Back.pwn(10786) : warning 219: local variable "i" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.


Line 1489:

new LuX_ReadPlayerPosition[PLAYERS][ReadPositions];


Line 10781:

for (new i=0; i < p; i++) {

Line 10786:

for(new i; i<MAX_PLAYERS; i++)


Tnx !
Reply
#2

warning 219: local variable "i" shadows a variable at a preceding level
That error means you have two variables that are the same, in this case i

error 008: must be a constant expression; assumed zero
One of the arrays (probably PLAYERS) isn't defined.
Reply
#3

You didn't close the first for loop type instruction.

pawn Код:
main()
{
    for(new i = 1; i > 0; i++)
    {
        print("debug");
    }
    for(new i = 1; i > 0; i++)
    {
        print("debug");
    }

}
Reply
#4

Tnx !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)