26.02.2013, 19:11
so, i tried to create the los santos emergency services faction, but im facing some errors :
Error lines:
Warning lines:
and the 4865 line is just a bracket. }
what's wrong?
btw.. maybe this helps
pawn Код:
C:\Users\Mihai\Desktop\samp\Romanian Project Roleplay\gamemodes\ZRP.pwn(4863) : warning 225: unreachable code
C:\Users\Mihai\Desktop\samp\Romanian Project Roleplay\gamemodes\ZRP.pwn(4865) : warning 209: function "cmd_factionhelp" should return a value
C:\Users\Mihai\Desktop\samp\Romanian Project Roleplay\gamemodes\ZRP.pwn(19035) : error 032: array index out of bounds (variable "FacInfo")
C:\Users\Mihai\Desktop\samp\Romanian Project Roleplay\gamemodes\ZRP.pwn(19036) : error 032: array index out of bounds (variable "FacInfo")
C:\Users\Mihai\Desktop\samp\Romanian Project Roleplay\gamemodes\ZRP.pwn(19037) : error 032: array index out of bounds (variable "FacInfo")
C:\Users\Mihai\Desktop\samp\Romanian Project Roleplay\gamemodes\ZRP.pwn(19038) : error 032: array index out of bounds (variable "FacInfo")
C:\Users\Mihai\Desktop\samp\Romanian Project Roleplay\gamemodes\ZRP.pwn(19039) : error 032: array index out of bounds (variable "FacInfo")
C:\Users\Mihai\Desktop\samp\Romanian Project Roleplay\gamemodes\ZRP.pwn(19040) : error 032: array index out of bounds (variable "FacInfo")
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
6 Errors.
Error lines:
pawn Код:
FacInfo[5][fCars][0] = CreateVehicle(416,1177.3848,-1308.5576,14.0202,268.9371,1,3); // EMS 1
FacInfo[5][fCars][1] = CreateVehicle(416,1178.4545,-1338.7717,14.0225,268.6550,1,3); // EMS 2
FacInfo[5][fCars][2] = CreateVehicle(487,1162.7025,-1311.8475,31.6774,176.2470,1,3); // EMS 3
FacInfo[5][fCars][3] = CreateVehicle(416,1135.6943,-1338.1392,13.8761,0.3299,1,3); // EMS 4
FacInfo[5][fCars][4] = CreateVehicle(496,1147.8757,-1314.8203,13.3917,359.8757,3,1); // EMS 5
FacInfo[5][fCars][5] = CreateVehicle(416,1142.5662,-1338.1984,13.7726,1.7702,1,3); // EMS 6
pawn Код:
if(IsAMedic(playerid)) SendClientMessage(playerid, COLOR_YELLOW, "EMS: {FFFFFF} /heal /surgery /flashlights");
what's wrong?
btw.. maybe this helps
pawn Код:
new FacInfo[MAX_FACTIONS][facInfo];