C:\Users\Cbu-Samp\Desktop\filterscripts\carownership.pwn(272) : error 028: invalid subscript (not an array or too many subscripts): "CarInfo" C:\Users\Cbu-Samp\Desktop\filterscripts\carownership.pwn(272) : warning 215: expression has no effect C:\Users\Cbu-Samp\Desktop\filterscripts\carownership.pwn(272) : error 001: expected token: ";", but found "]" C:\Users\Cbu-Samp\Desktop\filterscripts\carownership.pwn(272) : error 029: invalid expression, assumed zero C:\Users\Cbu-Samp\Desktop\filterscripts\carownership.pwn(272) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |
public OnFilterScriptInit() { printf("Filterscript carownership.amx Initiated\n"); LoadCar(); for(new h = carsonserver; h < sizeof(CarInfo); h++) { AddStaticVehicleEx(CarInfo[h][cLocationx],CarInfo[h][cLocationy],CarInfo[h][cLocationz]+1.0,CarInfo[h][cAngle],CarInfo[h][cColorOne],CarInfo[h][cColorTwo],60000); LoadComponents(h); } return 1; } |
AddStaticVehicleEx(CarInfo[h][cLocationx],CarInfo[h][cLocationy],CarInfo[h][cLocationz]+1.0,CarInfo[h][cAngle],CarInfo[h][cColorOne],CarInfo[h][cColorTwo],60000); |
enum vInfo
{
vThing1,
vThing2,
vThing3,
};
new VehicleInfo[MAX_VEHICLES][vInfo];