03.08.2015, 12:45
Welcome, if you help me.
new MetalDetectors[MAX_METAL_DETECTORS];
enum detectorData
{
detectorID,
detectorExists,
Float:detectorPos[4],
detectorInterior,
detectorWorld,
detectorObject[2]
};
SCRIPT:
ERROR:
new MetalDetectors[MAX_METAL_DETECTORS];
enum detectorData
{
detectorID,
detectorExists,
Float:detectorPos[4],
detectorInterior,
detectorWorld,
detectorObject[2]
};
SCRIPT:
Код HTML:
stock Detector_Delete(id) { if (id != -1 && MetalDetectors[id][detectorExists]) { new query[64]; DestroyDynamicObject(MetalDetectors[id][detectorObject][0]); DestroyDynamicObject(MetalDetectors[id][detectorObject][1]); format(query, sizeof(query), "DELETE FROM `detectors` WHERE `detectorID` = '%d'", MetalDetectors[id][detectorID]); mysql_tquery(g_iHandle, query); MetalDetectors[id][detectorID] = 0; MetalDetectors[id][detectorExists] = 0; } return 1; }
Код HTML:
if (id != -1 && MetalDetectors[id][detectorExists])
Код HTML:
C:\Users\User\Desktop\SLS-RP\gamemodes\LSL-RP.pwn(3921) : error 001: expected token: ")", but found "[" C:\Users\User\Desktop\SLS-RP\gamemodes\LSL-RP.pwn(3921) : error 029: invalid expression, assumed zero C:\Users\User\Desktop\SLS-RP\gamemodes\LSL-RP.pwn(3921) : warning 215: expression has no effect C:\Users\User\Desktop\SLS-RP\gamemodes\LSL-RP.pwn(3921) : error 001: expected token: ";", but found "]" C:\Users\User\Desktop\SLS-RP\gamemodes\LSL-RP.pwn(3921) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.