MetalDetectors Error
#1

Welcome, if you help me.

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;
}
ERROR:
Код 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.
Reply


Messages In This Thread
MetalDetectors Error - by Pagle - 03.08.2015, 12:45
Re: MetalDetectors Error - by J0sh... - 03.08.2015, 12:49
Re: MetalDetectors Error - by Pagle - 03.08.2015, 13:34
Re: MetalDetectors Error - by Zonoya - 03.08.2015, 13:35
Re: MetalDetectors Error - by Pagle - 03.08.2015, 14:00
Re: MetalDetectors Error - by Zonoya - 03.08.2015, 15:47
Re: MetalDetectors Error - by Pagle - 03.08.2015, 16:08
Re: MetalDetectors Error - by Zonoya - 03.08.2015, 16:25

Forum Jump:


Users browsing this thread: 1 Guest(s)