04.09.2013, 18:30
C:\Documents and Settings\Lisa\Mijn documenten\VLRP\SXRP.pwn(1356) : warning 217: loose indentation
C:\Documents and Settings\Lisa\Mijn documenten\VLRP\SXRP.pwn(1371) : error 017: undefined symbol "PlayerVehicleInfo"
C:\Documents and Settings\Lisa\Mijn documenten\VLRP\SXRP.pwn(1374) : error 017: undefined symbol "PlayerVehicleInfo"
C:\Documents and Settings\Lisa\Mijn documenten\VLRP\SXRP.pwn(1392) : error 017: undefined symbol "PlayerVehicleInfo"
C:\Documents and Settings\Lisa\Mijn documenten\VLRP\SXRP.pwn(1392) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Lisa\Mijn documenten\VLRP\SXRP.pwn(1392) : warning 215: expression has no effect
C:\Documents and Settings\Lisa\Mijn documenten\VLRP\SXRP.pwn(1392) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Lisa\Mijn documenten\VLRP\SXRP.pwn(1392) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
6 Errors.
This is the line
And yes i have this
line 1392
line 1374
line 1371
C:\Documents and Settings\Lisa\Mijn documenten\VLRP\SXRP.pwn(1371) : error 017: undefined symbol "PlayerVehicleInfo"
C:\Documents and Settings\Lisa\Mijn documenten\VLRP\SXRP.pwn(1374) : error 017: undefined symbol "PlayerVehicleInfo"
C:\Documents and Settings\Lisa\Mijn documenten\VLRP\SXRP.pwn(1392) : error 017: undefined symbol "PlayerVehicleInfo"
C:\Documents and Settings\Lisa\Mijn documenten\VLRP\SXRP.pwn(1392) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Lisa\Mijn documenten\VLRP\SXRP.pwn(1392) : warning 215: expression has no effect
C:\Documents and Settings\Lisa\Mijn documenten\VLRP\SXRP.pwn(1392) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Lisa\Mijn documenten\VLRP\SXRP.pwn(1392) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
6 Errors.
This is the line
Код:
stock UpdatePlayerVehicleMods(playerid, playervehicleid) { if(PlayerVehicleInfo[playerid][playervehicleid][pvImpounded] == 0 || PlayerVehicleInfo[playerid][playervehicleid][pvSpawned] == 1) { new playername[MAX_PLAYER_NAME]; GetPlayerName(playerid, playername, sizeof(playername)); new carid = PlayerVehicleInfo[playerid][playervehicleid][pvId]; new exhaust, frontbumper, rearbumper, roof, spoilers, sideskirt1, sideskirt2, wheels, hydraulics, nitro, hood, lamps, stereo, ventright, ventleft; exhaust = GetVehicleComponentInSlot(carid, CARMODTYPE_EXHAUST); frontbumper = GetVehicleComponentInSlot(carid, CARMODTYPE_FRONT_BUMPER); rearbumper = GetVehicleComponentInSlot(carid, CARMODTYPE_REAR_BUMPER); roof = GetVehicleComponentInSlot(carid, CARMODTYPE_ROOF); spoilers = GetVehicleComponentInSlot(carid, CARMODTYPE_SPOILER); sideskirt1 = GetVehicleComponentInSlot(carid, CARMODTYPE_SIDESKIRT); sideskirt2 = GetVehicleComponentInSlot(carid, CARMODTYPE_SIDESKIRT); wheels = GetVehicleComponentInSlot(carid, CARMODTYPE_WHEELS); hydraulics = GetVehicleComponentInSlot(carid, CARMODTYPE_HYDRAULICS); nitro = GetVehicleComponentInSlot(carid, CARMODTYPE_NITRO); hood = GetVehicleComponentInSlot(carid, CARMODTYPE_HOOD); lamps = GetVehicleComponentInSlot(carid, CARMODTYPE_LAMPS); stereo = GetVehicleComponentInSlot(carid, CARMODTYPE_STEREO); ventright = GetVehicleComponentInSlot(carid, CARMODTYPE_VENT_RIGHT); ventleft = GetVehicleComponentInSlot(carid, CARMODTYPE_VENT_LEFT); if(spoilers >= 1000) PlayerVehicleInfo[playerid][playervehicleid][pvMods][0] = spoilers; if(hood >= 1000) PlayerVehicleInfo[playerid][playervehicleid][pvMods][1] = hood; if(roof >= 1000) PlayerVehicleInfo[playerid][playervehicleid][pvMods][2] = roof; if(sideskirt1 >= 1000) PlayerVehicleInfo[playerid][playervehicleid][pvMods][3] = sideskirt1; if(lamps >= 1000) PlayerVehicleInfo[playerid][playervehicleid][pvMods][4] = lamps; if(nitro >= 1000) PlayerVehicleInfo[playerid][playervehicleid][pvMods][5] = nitro; if(exhaust >= 1000) PlayerVehicleInfo[playerid][playervehicleid][pvMods][6] = exhaust; if(wheels >= 1000) PlayerVehicleInfo[playerid][playervehicleid][pvMods][7] = wheels; if(stereo >= 1000) PlayerVehicleInfo[playerid][playervehicleid][pvMods][8] = stereo; if(hydraulics >= 1000) PlayerVehicleInfo[playerid][playervehicleid][pvMods][9] = hydraulics; if(frontbumper >= 1000) PlayerVehicleInfo[playerid][playervehicleid][pvMods][10] = frontbumper; if(rearbumper >= 1000) PlayerVehicleInfo[playerid][playervehicleid][pvMods][11] = rearbumper; if(ventright >= 1000) PlayerVehicleInfo[playerid][playervehicleid][pvMods][12] = ventright; if(ventleft >= 1000) PlayerVehicleInfo[playerid][playervehicleid][pvMods][13] = ventleft; if(sideskirt2 >= 1000) PlayerVehicleInfo[playerid][playervehicleid][pvMods][14] = sideskirt2; } }
Код:
enum pvInfo { Float:pvPosX, Float:pvPosY, Float:pvPosZ, Float:pvPosAngle, pvId, pvModelId, pvLock, pvLocked, pvPaintJob, pvColor1, pvColor2, pvMods[MAX_MODS], pvAllowPlayer[MAX_PLAYER_NAME], pvAllowedPlayerId, pvPark, //pvNumberPlate[32], // sz pvPrice, pvTicket, pvDisabled, pvSpawned, pvWeapons[3], pvWepUpgrade, pvImpounded, pvSpawned, pvDisabled Float: pvFuel, }; new PlayerVehicleInfo[MAX_PLAYERS+1][MAX_PLAYERVEHICLES][pvInfo];
Код:
if(spoilers >= 1000) PlayerVehicleInfo[playerid][playervehicleid][pvMods][0] = spoilers;
Код:
new carid = PlayerVehicleInfo[playerid][playervehicleid][pvId];
Код:
if(PlayerVehicleInfo[playerid][playervehicleid][pvImpounded] == 0 || PlayerVehicleInfo[playerid][playervehicleid][pvSpawned] == 1) {