16.03.2015, 18:26
I get
Enum;
Quote:
C:\Users\Callum.Acer\Desktop\Servers\XenRP\gamemod es\LARP1.pwn(1866) : warning 213: tag mismatch C:\Users\Callum.Acer\Desktop\Servers\XenRP\gamemod es\LARP1.pwn(1869) : warning 213: tag mismatch C:\Users\Callum.Acer\Desktop\Servers\XenRP\gamemod es\LARP1.pwn(1870) : warning 213: tag mismatch C:\Users\Callum.Acer\Desktop\Servers\XenRP\gamemod es\LARP1.pwn(1871) : warning 213: tag mismatch C:\Users\Callum.Acer\Desktop\Servers\XenRP\gamemod es\LARP1.pwn(1872) : warning 213: tag mismatch C:\Users\Callum.Acer\Desktop\Servers\XenRP\gamemod es\LARP1.pwn(1872) : error 032: array index out of bounds (variable "PlayerVehicleInfo") C:\Users\Callum.Acer\Desktop\Servers\XenRP\gamemod es\LARP1.pwn(1873) : warning 213: tag mismatch C:\Users\Callum.Acer\Desktop\Servers\XenRP\gamemod es\LARP1.pwn(1874) : warning 213: tag mismatch C:\Users\Callum.Acer\Desktop\Servers\XenRP\gamemod es\LARP1.pwn(1875) : warning 213: tag mismatch C:\Users\Callum.Acer\Desktop\Servers\XenRP\gamemod es\LARP1.pwn(1875) : error 032: array index out of bounds (variable "PlayerVehicleInfo") C:\Users\Callum.Acer\Desktop\Servers\XenRP\gamemod es\LARP1.pwn(1876) : warning 213: tag mismatch C:\Users\Callum.Acer\Desktop\Servers\XenRP\gamemod es\LARP1.pwn(1876) : error 032: array index out of bounds (variable "PlayerVehicleInfo") C:\Users\Callum.Acer\Desktop\Servers\XenRP\gamemod es\LARP1.pwn(1877) : warning 213: tag mismatch C:\Users\Callum.Acer\Desktop\Servers\XenRP\gamemod es\LARP1.pwn(1877) : error 032: array index out of bounds (variable "PlayerVehicleInfo") C:\Users\Callum.Acer\Desktop\Servers\XenRP\gamemod es\LARP1.pwn(187 : warning 213: tag mismatch C:\Users\Callum.Acer\Desktop\Servers\XenRP\gamemod es\LARP1.pwn(187 : error 032: array index out of bounds (variable "PlayerVehicleInfo") C:\Users\Callum.Acer\Desktop\Servers\XenRP\gamemod es\LARP1.pwn(1879) : warning 213: tag mismatch C:\Users\Callum.Acer\Desktop\Servers\XenRP\gamemod es\LARP1.pwn(1879) : error 032: array index out of bounds (variable "PlayerVehicleInfo") C:\Users\Callum.Acer\Desktop\Servers\XenRP\gamemod es\LARP1.pwn(1880) : warning 213: tag mismatch C:\Users\Callum.Acer\Desktop\Servers\XenRP\gamemod es\LARP1.pwn(1880) : error 032: array index out of bounds (variable "PlayerVehicleInfo") C:\Users\Callum.Acer\Desktop\Servers\XenRP\gamemod es\LARP1.pwn(1881) : warning 213: tag mismatch C:\Users\Callum.Acer\Desktop\Servers\XenRP\gamemod es\LARP1.pwn(1881) : error 032: array index out of bounds (variable "PlayerVehicleInfo") C:\Users\Callum.Acer\Desktop\Servers\XenRP\gamemod es\LARP1.pwn(1884) : warning 213: tag mismatch C:\Users\Callum.Acer\Desktop\Servers\XenRP\gamemod es\LARP1.pwn(1884) : error 032: array index out of bounds (variable "PlayerVehicleInfo") C:\Users\Callum.Acer\Desktop\Servers\XenRP\gamemod es\LARP1.pwn(1884) : error 029: invalid expression, assumed zero C:\Users\Callum.Acer\Desktop\Servers\XenRP\gamemod es\LARP1.pwn(1884) : warning 215: expression has no effect C:\Users\Callum.Acer\Desktop\Servers\XenRP\gamemod es\LARP1.pwn(1884) : error 001: expected token: ";", but found "]" C:\Users\Callum.Acer\Desktop\Servers\XenRP\gamemod es\LARP1.pwn(1884) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 12 Errors. |
Код:
stock CreatePlayerVehicle(playerid, playervehicleid, modelid, Float: x, Float: y, Float: z, Float: angle, color1, color2, price) { if(PlayerVehicleInfo[playerid][playervehicleid][pvId] == INVALID_PLAYER_VEHICLE_ID) { PlayerCars++; PlayerVehicleInfo[playerid][playervehicleid][pvModelId] = modelid; PlayerVehicleInfo[playerid][playervehicleid][pvPosX] = x; PlayerVehicleInfo[playerid][playervehicleid][pvPosY] = y; PlayerVehicleInfo[playerid][playervehicleid][pvInsurance] = 0; PlayerVehicleInfo[playerid][playervehicleid][pvPosZ] = z; PlayerVehicleInfo[playerid][playervehicleid][pvPosAngle] = angle; PlayerVehicleInfo[playerid][playervehicleid][pvColor1] = color1; PlayerVehicleInfo[playerid][playervehicleid][pvColor2] = color2; PlayerVehicleInfo[playerid][playervehicleid][pvPark] = 1; PlayerVehicleInfo[playerid][playervehicleid][pvPrice] = price; PlayerVehicleInfo[playerid][playervehicleid][pvFuel] = 100.0; PlayerVehicleInfo[playerid][playervehicleid][pvImpounded] = 0; PlayerVehicleInfo[playerid][playervehicleid][pvPlate] = 0; for(new m = 0; m < MAX_MODS; m++) { PlayerVehicleInfo[playerid][playervehicleid][pvMods][m] = 0;LINE 1884 } new carcreated = AddStaticVehicleEx(modelid,x,y,z,angle,color1,color2,-1); PlayerVehicleInfo[playerid][playervehicleid][pvId] = carcreated; Gas[carcreated] =100.0; return carcreated; } return INVALID_PLAYER_VEHICLE_ID; }
Код:
enum pvInfo { Float:pvPosX, Float:pvPosY, Float:pvPosZ, Float:pvPosAngle, pvId, pvModelId, pvLock, pvLocked, pvMods, pvPlate, pvPaintJob, pvColor1, pvColor2, pvAllowPlayer[MAX_PLAYER_NAME], pvAllowedPlayerId, pvPark, pvPrice, pvTicket, pvWeapons[3], pvWepUpgrade, pvImpounded, pvInsurance, Float: pvFuel }; new PlayerVehicleInfo[MAX_PLAYERS][pvInfo][MAX_PLAYERVEHICLES];