#1

D:\Extreme Stunting\gamemodes\StuntGM_XS.pwn(14717) : warning 217: loose indentation
D:\Extreme Stunting\gamemodes\StuntGM_XS.pwn(14717) : error 014: invalid statement; not in switch
D:\Extreme Stunting\gamemodes\StuntGM_XS.pwn(14717) : warning 215: expression has no effect
D:\Extreme Stunting\gamemodes\StuntGM_XS.pwn(14717) : error 001: expected token: ";", but found ":"
D:\Extreme Stunting\gamemodes\StuntGM_XS.pwn(14717) : error 029: invalid expression, assumed zero
D:\Extreme Stunting\gamemodes\StuntGM_XS.pwn(14717) : fatal error 107: too many error messages on one line

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


4 Errors.


lines..
Код:
 case 10: {
				switch(random(3)) {
				    case 0: raceVehicle[0] = 424;
				    case 1: raceVehicle[0] = 495;
					case 2: raceVehicle[0] = 568;
					
				}
			}
			case 15: raceVehicle[1] = 571;
				}
			}
 			case 16: raceVehicle[2] = 500; >>HERE<< is the problem
   }
Reply
#2

pawn Код:
case 10:
{
    switch(random[3])
    {
        case 0:
        {
            raceVehicle[0] = 424;
        }
        case 1:
        {
            raceVehicle[0] = 495;
        }
        case 2:
        {
            raceVehicle[0] = 568;
        }
    }
}
case 15:
{
    raceVehicle[1] = 571;
}
case 16:
{
    raceVehicle[2] = 500;
}
Try that.
Reply
#3

Quote:
Originally Posted by Keyhead
Посмотреть сообщение
pawn Код:
case 10:
{
    switch(random[3])
    {
        case 0:
        {
            raceVehicle[0] = 424;
        }
        case 1:
        {
            raceVehicle[0] = 495;
        }
        case 2:
        {
            raceVehicle[0] = 568;
        }
    }
}
case 15:
{
    raceVehicle[1] = 571;
}
case 16:
{
    raceVehicle[2] = 500;
}
Try that.
it get only 2 errors
D:\Extreme Stunting\gamemodes\StuntGM_XS.pwn(14721) : error 032: array index out of bounds (variable "raceVehicle")
D:\Extreme Stunting\gamemodes\StuntGM_XS.pwn(1473 : error 032: array index out of bounds (variable "raceVehicle")
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Код:
		case 16:
		{
		    raceVehicle[2] = 500;
		}
Код:
case 16: CreateRaceVehicle(playerid, raceVehicle[2]);
Reply
#4

try declaring raceVehicle variable as
Код:
new raceVehicle[5];
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)