PDA

View Full Version : Help?


eblood1
14/11/2013, 12:23 AM
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 (c) 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
}

Keyhead
14/11/2013, 12:30 AM
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.

eblood1
14/11/2013, 12:40 AM
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(14738) : error 032: array index out of bounds (variable "raceVehicle")
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.

case 16:
{
raceVehicle[2] = 500;
}


case 16: CreateRaceVehicle(playerid, raceVehicle[2]);

electrux
14/11/2013, 02:45 AM
try declaring raceVehicle variable as new raceVehicle[5];